:root {
  --ink: #101a1f;
  --muted: #5e6b72;
  --line: #dbe4e6;
  --paper: #f7fbfb;
  --soft: #eaf3f3;
  --deep: #06151b;
  --panel: #ffffff;
  --accent: #088c8c;
  --accent-dark: #075c67;
  --cyan: #4ed8e3;
  --gold: #b78a43;
  --rose: #ad4c71;
  --white: #ffffff;
  --shadow: 0 24px 64px rgba(10, 35, 42, 0.14);
  --max: 1120px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

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

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

.site-header {
  position: fixed;
  z-index: 20;
  top: 0;
  left: 0;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 18px clamp(18px, 5vw, 56px);
  color: var(--white);
  transition: background 180ms ease, color 180ms ease, box-shadow 180ms ease;
}

.site-header.is-scrolled,
.site-header.is-open {
  background: rgba(247, 251, 251, 0.96);
  color: var(--ink);
  box-shadow: 0 8px 28px rgba(8, 30, 36, 0.08);
  backdrop-filter: blur(14px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  letter-spacing: 0;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border: 1px solid currentColor;
  border-radius: 50%;
  font-size: 0.78rem;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 22px;
  font-size: 0.93rem;
  font-weight: 700;
}

.site-nav a {
  opacity: 0.88;
}

.site-nav a:hover {
  opacity: 1;
}

.nav-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 1px solid currentColor;
  border-radius: 50%;
  background: transparent;
  color: inherit;
  padding: 11px;
}

.nav-toggle span {
  display: block;
  width: 100%;
  height: 2px;
  margin: 4px 0;
  background: currentColor;
}

.hero {
  position: relative;
  min-height: 92vh;
  display: grid;
  align-items: end;
  overflow: hidden;
  padding: 160px clamp(20px, 6vw, 72px) 80px;
  color: var(--white);
}

.hero-media,
.hero-overlay {
  position: absolute;
  inset: 0;
}

.hero-media {
  background-image: url("../images/osteosarcoma-hero.png");
  background-size: cover;
  background-position: center;
  transform: scale(1.02);
}

.hero-overlay {
  background:
    linear-gradient(90deg, rgba(3, 11, 17, 0.92) 0%, rgba(3, 16, 24, 0.72) 43%, rgba(4, 21, 30, 0.24) 100%),
    linear-gradient(0deg, rgba(3, 10, 16, 0.72) 0%, rgba(3, 10, 16, 0.04) 46%);
}

.hero-content {
  position: relative;
  z-index: 1;
  width: min(780px, 100%);
}

.eyebrow,
.section-label {
  margin: 0 0 12px;
  color: var(--gold);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

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

h1,
.section-title {
  font-family: "Source Serif 4", Georgia, serif;
  line-height: 1.05;
  letter-spacing: 0;
}

h1 {
  margin-bottom: 18px;
  font-size: clamp(3.2rem, 7.6vw, 7rem);
}

h1 span,
.profile-panel h2 span {
  font-family: Inter, system-ui, sans-serif;
  font-size: 0.42em;
  font-weight: 700;
  vertical-align: 0.16em;
}

.hero-subtitle {
  margin-bottom: 18px;
  font-size: clamp(1.1rem, 2vw, 1.5rem);
  font-weight: 800;
}

.hero-copy {
  max-width: 690px;
  color: rgba(255, 255, 255, 0.86);
  font-size: 1.08rem;
}

.hero-actions,
.contact-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 30px;
}

.button {
  display: inline-flex;
  min-height: 46px;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255, 255, 255, 0.72);
  padding: 10px 18px;
  border-radius: 6px;
  font-weight: 800;
}

.button.primary {
  border-color: var(--white);
  background: var(--white);
  color: var(--accent-dark);
}

.button.secondary {
  color: var(--white);
}

.section {
  padding: 88px clamp(20px, 5vw, 56px);
}

.section-inner {
  width: min(var(--max), 100%);
  margin: 0 auto;
}

.section-title {
  margin-bottom: 28px;
  font-size: clamp(2rem, 4vw, 3.45rem);
}

.lead {
  color: var(--ink);
  font-size: 1.18rem;
  font-weight: 600;
}

.about-grid,
.contact-grid {
  display: grid;
  grid-template-columns: 360px 1fr;
  gap: clamp(32px, 6vw, 76px);
  align-items: start;
}

.profile-panel,
.contact-card,
.project-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  box-shadow: var(--shadow);
}

.profile-panel {
  padding: 24px;
}

.profile-photo {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  object-position: center top;
  border-radius: 8px;
  margin-bottom: 22px;
}

.profile-panel h2 {
  margin-bottom: 8px;
}

.profile-panel p {
  margin-bottom: 4px;
  color: var(--muted);
}

.profile-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 24px;
}

.profile-links a,
.pub-links a,
.text-link,
.contact-actions a {
  color: var(--accent-dark);
  font-weight: 800;
}

.metrics {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  margin-top: 30px;
}

.metrics div {
  border-top: 3px solid var(--accent);
  background: var(--panel);
  padding: 16px;
}

.metrics strong {
  display: block;
  color: var(--accent-dark);
  font-size: 1.55rem;
  line-height: 1;
}

.metrics span {
  display: block;
  margin-top: 8px;
  color: var(--muted);
  font-size: 0.88rem;
  line-height: 1.45;
}

.research-section,
.projects-section {
  background: var(--soft);
}

.research-grid,
.project-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.research-item {
  min-height: 250px;
  border-top: 3px solid var(--accent);
  padding: 24px;
  background: var(--panel);
}

.item-index,
.project-meta {
  color: var(--gold);
  font-weight: 800;
}

.research-item h3,
.project-card h3 {
  margin: 26px 0 12px;
  font-size: 1.18rem;
}

.research-item p,
.publication p,
.timeline p,
.contact-section p,
.project-card p {
  color: var(--muted);
}

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

.publication-list {
  border-top: 1px solid var(--line);
}

.publication {
  display: grid;
  grid-template-columns: 96px 1fr;
  gap: 24px;
  padding: 28px 0;
  border-bottom: 1px solid var(--line);
}

.publication.featured {
  background: linear-gradient(90deg, rgba(8, 140, 140, 0.08), rgba(78, 216, 227, 0.02));
  margin-left: -18px;
  margin-right: -18px;
  padding-left: 18px;
  padding-right: 18px;
}

.pub-year {
  color: var(--accent-dark);
  font-weight: 800;
}

.publication h3 {
  margin-bottom: 8px;
  font-size: 1.18rem;
  line-height: 1.35;
}

.pub-venue {
  font-style: italic;
}

.project-grid {
  grid-template-columns: repeat(2, 1fr);
}

.project-card {
  padding: 24px;
}

.project-card h3 {
  margin-top: 10px;
}

.news-section {
  background: var(--deep);
  color: var(--white);
}

.news-section .section-title {
  color: var(--white);
}

.timeline {
  display: grid;
  gap: 16px;
}

.timeline-item {
  display: grid;
  grid-template-columns: 160px 1fr;
  gap: 28px;
  padding: 22px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.16);
}

.timeline time {
  color: var(--cyan);
  font-weight: 800;
}

.news-section .timeline p {
  color: rgba(255, 255, 255, 0.78);
}

.contact-card {
  padding: 28px;
}

.contact-card > a {
  display: inline-block;
  margin-bottom: 16px;
  color: var(--accent-dark);
  font-size: 1.15rem;
  font-weight: 800;
  overflow-wrap: anywhere;
}

.contact-actions {
  margin-top: 20px;
}

.site-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 26px clamp(20px, 5vw, 56px);
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.92rem;
}

.site-footer p {
  margin-bottom: 0;
}

.site-footer a {
  color: var(--accent-dark);
  font-weight: 800;
}

@media (max-width: 940px) {
  .site-nav {
    gap: 16px;
    font-size: 0.88rem;
  }

  .metrics {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 840px) {
  .nav-toggle {
    display: block;
  }

  .site-nav {
    position: absolute;
    top: 100%;
    right: 18px;
    left: 18px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--panel);
    color: var(--ink);
    box-shadow: var(--shadow);
  }

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

  .site-nav a {
    padding: 14px 18px;
    border-bottom: 1px solid var(--line);
  }

  .site-nav a:last-child {
    border-bottom: 0;
  }

  .hero {
    min-height: 88vh;
    padding-top: 132px;
    padding-bottom: 56px;
  }

  .hero-overlay {
    background:
      linear-gradient(90deg, rgba(3, 10, 16, 0.94) 0%, rgba(3, 10, 16, 0.76) 68%, rgba(3, 10, 16, 0.38) 100%),
      linear-gradient(0deg, rgba(3, 10, 16, 0.68) 0%, rgba(3, 10, 16, 0.05) 46%);
  }

  .about-grid,
  .contact-grid,
  .research-grid,
  .project-grid,
  .timeline-item {
    grid-template-columns: 1fr;
  }

  .publication {
    grid-template-columns: 1fr;
    gap: 6px;
  }

  .section-heading-row,
  .site-footer {
    align-items: flex-start;
    flex-direction: column;
  }
}

@media (max-width: 520px) {
  .site-header {
    padding: 14px 16px;
  }

  .brand span:last-child {
    max-width: 170px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  h1 {
    font-size: 3rem;
  }

  .section {
    padding-top: 66px;
    padding-bottom: 66px;
  }

  .button,
  .hero-actions {
    width: 100%;
  }

  .metrics {
    grid-template-columns: 1fr;
  }
}
