:root {
  --background: #f4f6f8;
  --surface: #ffffff;
  --surface-soft: #eaf1f7;
  --text: #111827;
  --muted: #5f6875;
  --line: #d9dee7;
  --accent: #156f9e;
  --accent-dark: #0f587e;
  --footer: #101827;
  --max-width: 1180px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 90px; }
body {
  margin: 0;
  background: var(--background);
  color: var(--text);
  font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.6;
}
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }

.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);
}
.navbar {
  width: min(calc(100% - 40px), var(--max-width));
  min-height: 72px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.brand { font-size: 1.05rem; font-weight: 750; letter-spacing: -0.02em; }
.nav-links, .hero-actions { display: flex; align-items: center; gap: 8px; }
.nav-link {
  padding: 9px 13px;
  border-radius: 8px;
  color: var(--muted);
  font-size: 0.94rem;
  font-weight: 600;
  transition: color 160ms ease, background 160ms ease;
}
.nav-link:hover, .nav-link:focus-visible { background: #eef2f8; color: var(--text); }
.nav-link-primary { background: var(--accent); color: #ffffff; }
.nav-link-primary:hover, .nav-link-primary:focus-visible { background: var(--accent-dark); color: #ffffff; }

main { min-height: calc(100vh - 72px); }
.hero, .projects-section, .about-section {
  width: min(calc(100% - 40px), var(--max-width));
  margin: 0 auto;
}
.hero {
  min-height: 650px;
  padding: 130px 0 110px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
}
.eyebrow, .section-label {
  margin: 0 0 18px;
  color: var(--accent);
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
h1, h2, h3, p, figure { margin-top: 0; }
h1 {
  max-width: 900px;
  margin-bottom: 0;
  font-size: clamp(3.4rem, 9vw, 7.4rem);
  line-height: 0.95;
  letter-spacing: -0.065em;
}
h2 {
  margin-bottom: 0;
  font-size: clamp(2.25rem, 5vw, 4.5rem);
  line-height: 1.02;
  letter-spacing: -0.055em;
}
h3 {
  margin-bottom: 0;
  font-size: clamp(1.7rem, 3vw, 2.5rem);
  line-height: 1.15;
  letter-spacing: -0.035em;
}
.hero-title {
  max-width: 790px;
  margin: 34px 0 0;
  font-size: clamp(1.35rem, 3vw, 2rem);
  font-weight: 650;
  line-height: 1.35;
}
.hero-description { max-width: 720px; margin: 20px 0 0; color: var(--muted); font-size: 1.06rem; }
.hero-actions { margin-top: 38px; gap: 22px; }
.resume-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 13px 20px;
  border-radius: 9px;
  background: var(--accent);
  color: #ffffff;
  font-weight: 700;
  transition: background 160ms ease, transform 160ms ease;
}
.resume-button:hover, .resume-button:focus-visible { background: var(--accent-dark); transform: translateY(-1px); }
.text-link { color: var(--accent-dark); font-weight: 700; }
.text-link:hover, .text-link:focus-visible { text-decoration: underline; text-underline-offset: 4px; }

.projects-section { padding: 110px 0; border-top: 1px solid var(--line); }
.section-heading {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 48px;
  align-items: end;
}
.section-heading h2 { max-width: 900px; }
.project-meta { margin-bottom: 8px; color: var(--muted); text-align: right; font-size: 0.95rem; }
.project-hero-image {
  margin: 58px 0 0;
  overflow: hidden;
  border-radius: 20px;
  background: #000000;
  box-shadow: 0 20px 55px rgba(26, 35, 48, 0.14);
}
.project-hero-image img { width: 100%; height: auto; }
.project-introduction {
  margin-top: 60px;
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) minmax(280px, 0.8fr);
  gap: 70px;
  align-items: start;
}
.project-lead {
  margin-bottom: 0;
  font-size: clamp(1.35rem, 2.5vw, 2rem);
  line-height: 1.4;
  letter-spacing: -0.025em;
}
.publication-status {
  margin-bottom: 0;
  padding: 24px;
  border-left: 4px solid var(--accent);
  background: var(--surface-soft);
  color: #314052;
}
.publication-status span {
  display: block;
  margin-bottom: 7px;
  color: var(--accent-dark);
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.project-stats {
  margin-top: 64px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.stat { min-height: 170px; padding: 35px; display: flex; flex-direction: column; justify-content: center; }
.stat + .stat { border-left: 1px solid var(--line); }
.stat strong {
  color: var(--accent-dark);
  font-size: clamp(1.8rem, 3vw, 3rem);
  line-height: 1.05;
  letter-spacing: -0.045em;
}
.stat span { margin-top: 10px; color: var(--muted); font-size: 0.95rem; }
.contribution-layout {
  margin-top: 92px;
  display: grid;
  grid-template-columns: minmax(280px, 0.85fr) minmax(0, 1.15fr);
  gap: 80px;
}
.contribution-list { margin: 0; padding: 0; list-style: none; counter-reset: contribution; }
.contribution-list li {
  position: relative;
  padding: 0 0 24px 58px;
  color: #374151;
  counter-increment: contribution;
}
.contribution-list li + li { padding-top: 24px; border-top: 1px solid var(--line); }
.contribution-list li::before {
  content: "0" counter(contribution);
  position: absolute;
  top: 0;
  left: 0;
  color: var(--accent);
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.08em;
}
.contribution-list li + li::before { top: 24px; }

.evidence-section {
  margin-top: 105px;
  padding: 72px;
  border-radius: 24px;
  background: #111a28;
  color: #ffffff;
}
.evidence-heading {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 0.7fr);
  gap: 70px;
  align-items: end;
}
.evidence-heading h3 { max-width: 650px; }
.evidence-heading > p {
  margin-bottom: 5px;
  color: #aeb9c9;
}
.evidence-grid {
  margin-top: 48px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
}
.evidence-card {
  margin-bottom: 0;
  overflow: hidden;
  border: 1px solid #344155;
  border-radius: 16px;
  background: #182335;
}
.evidence-card-photo {
  grid-column: 1 / -1;
  width: min(100%, 720px);
  justify-self: center;
}
.evidence-card video,
.evidence-card img {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  background: #000000;
  border-bottom: 1px solid #344155;
}
.evidence-card-photo img {
  width: 100%;
  height: auto;
  aspect-ratio: auto;
  object-fit: contain;
  object-position: center;
}
.evidence-card figcaption {
  min-height: 164px;
  padding: 24px 26px 27px;
  color: #b7c1cf;
  font-size: 0.94rem;
}
.evidence-card figcaption span {
  display: block;
  margin-bottom: 7px;
  color: #72c4eb;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.evidence-card figcaption strong {
  display: block;
  margin-bottom: 7px;
  color: #ffffff;
  font-size: 1.15rem;
}

.research-gallery {
  margin-top: 92px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 26px;
}
.gallery-card {
  margin-bottom: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--surface);
}
.gallery-card-wide { grid-column: 1 / -1; }
.gallery-card img {
  width: 100%;
  height: 330px;
  object-fit: contain;
  background: #ffffff;
  border-bottom: 1px solid var(--line);
}
.gallery-card-wide img { height: auto; max-height: 560px; }
.gallery-card figcaption { padding: 22px 24px 25px; color: var(--muted); font-size: 0.94rem; }
.gallery-card figcaption strong { display: block; margin-bottom: 5px; color: var(--text); font-size: 1.05rem; }

.about-section {
  padding: 105px 0;
  display: grid;
  grid-template-columns: minmax(280px, 0.9fr) minmax(0, 1.1fr);
  gap: 90px;
  border-top: 1px solid var(--line);
}
.about-section h2 { max-width: 540px; font-size: clamp(2.2rem, 4vw, 3.8rem); }
.about-copy { color: #374151; font-size: 1.08rem; }
.about-copy p:last-child { margin-bottom: 0; }

.site-footer {
  background: var(--footer);
  color: #d7deea;
  padding: 64px max(20px, calc((100% - var(--max-width)) / 2));
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 36px;
}
.site-footer p { margin: 0; color: #9ca8ba; }
.footer-name { margin-bottom: 8px !important; color: #ffffff !important; font-size: 1.15rem; font-weight: 750; }
.footer-contact { display: flex; flex-direction: column; align-items: flex-end; gap: 8px; }
.footer-contact a { color: #ffffff; font-weight: 650; }
.footer-contact a:hover, .footer-contact a:focus-visible { color: #78a7ff; }
.copyright { grid-column: 1 / -1; padding-top: 28px; border-top: 1px solid #2b3546; font-size: 0.88rem; }

@media (max-width: 850px) {
  .section-heading, .project-introduction, .contribution-layout, .evidence-heading, .about-section { grid-template-columns: 1fr; gap: 36px; }
  .project-meta { text-align: left; }
  .project-stats { grid-template-columns: 1fr; }
  .stat { min-height: 0; padding: 28px 0; }
  .stat + .stat { border-top: 1px solid var(--line); border-left: 0; }
}

@media (max-width: 720px) {
  .navbar { min-height: auto; padding: 16px 0; align-items: flex-start; flex-direction: column; }
  .nav-links { width: 100%; overflow-x: auto; }
  .hero { min-height: 560px; padding: 90px 0 80px; }
  .hero-actions { align-items: flex-start; flex-direction: column; }
  .projects-section { padding: 80px 0; }
  .project-hero-image { margin-top: 38px; border-radius: 12px; }
  .project-introduction, .project-stats, .contribution-layout, .research-gallery { margin-top: 55px; }
  .evidence-section { margin-top: 65px; padding: 34px 20px; border-radius: 16px; }
  .evidence-grid { grid-template-columns: 1fr; }
  .evidence-card-photo { grid-column: auto; }
  .evidence-card figcaption { min-height: 0; }
  .research-gallery { grid-template-columns: 1fr; }
  .gallery-card, .gallery-card-wide { grid-column: auto; }
  .gallery-card img, .gallery-card-wide img { height: auto; max-height: none; }
  .about-section { padding: 80px 0; }
  .site-footer { grid-template-columns: 1fr; }
  .footer-contact { align-items: flex-start; }
}
