:root {
  --bg: #011128;
  --surface:#0d263d;
  --surface-2: #102e49;
  --text: #f5f8fc;
  --muted: #b9c8d8;
  --line: #29445d;
  --accent: #68b9e8;
  --accent-soft: #9bd3f2;
  --max: 1100px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  min-height: 100vh;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.65;
}
a { color: var(--accent-soft); text-decoration-thickness: 1px; text-underline-offset: 4px; }
a:hover { color: #d7effd; }
.container { width: min(var(--max), calc(100% - 42px)); margin: 0 auto; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(7,26,43,.96);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(10px);
}
.nav-wrap { min-height: 78px; display: flex; align-items: center; justify-content: space-between; gap: 28px; }
.brand { display: flex; align-items: baseline; gap: 12px; color: var(--text); text-decoration: none; white-space: nowrap; }
.brand-mark { font-size: 1.3rem; font-weight: 850; letter-spacing: .09em; }
.brand-name { font-size: .92rem; color: var(--muted); font-weight: 600; }
nav { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
nav a { color: var(--muted); text-decoration: none; padding: 9px 12px; border-radius: 7px; font-size: .94rem; font-weight: 620; }
nav a:hover { color: var(--text); background: var(--surface); }
nav a.active { color: var(--text); background: var(--surface-2); box-shadow: inset 0 0 0 1px var(--line); }

.home-main { min-height: calc(100vh - 151px); display: flex; flex-direction: column; }
.hero { padding: clamp(80px, 12vw, 145px) 0 100px; flex: 1; }
.eyebrow { margin: 0 0 16px; color: var(--accent); font-size: .82rem; font-weight: 750; text-transform: uppercase; letter-spacing: .12em; }
h1 { margin: 0; font-size: clamp(3.3rem, 8vw, 7.1rem); line-height: .94; letter-spacing: -.055em; }
.lead { max-width: 800px; margin: 32px 0 16px; font-size: clamp(1.18rem, 2.3vw, 1.7rem); color: var(--muted); }
.pi-line { color: var(--text); font-weight: 650; margin: 0 0 34px; }
.hero-links { display: flex; align-items: center; gap: 22px; flex-wrap: wrap; }
.button { display: inline-block; background: var(--text); color: var(--bg); padding: 12px 19px; border-radius: 8px; text-decoration: none; font-weight: 750; }
.button:hover { color: var(--bg); background: #dceaf5; }
.text-link { font-weight: 650; }

.home-strip { border-top: 1px solid var(--line); background: #091f33; }
.home-strip-inner { min-height: 108px; display: flex; align-items: center; justify-content: space-between; gap: 30px; }
.home-strip-inner > div { display: grid; gap: 4px; }
.strip-label { color: var(--accent); text-transform: uppercase; letter-spacing: .1em; font-size: .76rem; font-weight: 750; }

.page-main { min-height: calc(100vh - 151px); }
.page-intro { padding: 82px 0 46px; border-bottom: 1px solid var(--line); }
.page-intro h1, .detail-title, .cv-title { font-size: clamp(2.8rem, 6vw, 5.1rem); line-height: 1; }
.page-intro .lead { margin-bottom: 0; }
.page-section { padding: 55px 0 85px; }
h2 { margin-top: 0; letter-spacing: -.025em; }
h3 { margin-top: 0; }
p { margin-top: 0; }

.research-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.card { padding: 26px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); }
.card h2 { font-size: 1.22rem; margin-bottom: 10px; }
.card p { color: var(--muted); margin-bottom: 0; }
.clickable-card { padding: 0; }
.card-link-block { display: block; height: 100%; padding: 26px; color: inherit; text-decoration: none; }
.clickable-card:hover, .clickable-card:focus-within { border-color: #4d7392; background: var(--surface-2); transform: translateY(-1px); }
.card-cta { display: block; margin-top: 18px; color: var(--accent); font-weight: 700; }
.research-card-head { display: flex; align-items: center; gap: 12px; min-height: 40px; }
.research-card-head h2 { margin: 0; }
.research-icon { width: 60px; height: 60px; object-fit: contain; flex-shrink: 0; }
.research-summary { margin: 16px 0 0; }

.publication-list { margin: 0; padding-left: 1.45rem; max-width: 1000px; }
.publication-list li { padding: 21px 0 24px 10px; border-top: 1px solid var(--line); color: var(--muted); }
.publication-list li:first-child { border-top: 0; }
.publication-list strong, .publication-list em { color: var(--text); }
.publication-list a { margin-left: 5px; white-space: nowrap; }

.people-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.person-card { display: grid; grid-template-columns: 150px 1fr; gap: 28px; padding: 28px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); }
.person-card h2 { margin-bottom: 5px; }
.initials { width: 72px; height: 72px; border-radius: 50%; display: grid; place-items: center; background: var(--accent); color: var(--bg); font-weight: 850; font-size: 1.15rem; }
.person-photo {
  width: 150px;
  height: 150px;
  border-radius: 12px;
  object-fit: cover;
}
.role { color: var(--accent-soft); font-weight: 650; }
.muted-card { background: #0a2135; }
.muted-card .initials { background: #29445d; color: var(--text); }

.cv-page, .detail-page { padding: 78px 0 90px; max-width: 900px; }
.cv-title, .detail-title { margin: 0 0 20px; }
.cv-section { padding: 36px 0; border-top: 1px solid var(--line); }
.cv-section h2 { margin-bottom: 18px; font-size: 1.55rem; }
.cv-section p, .cv-section li { color: var(--muted); }
.cv-section strong, .cv-section em { color: var(--text); }
.cv-section ul { padding-left: 1.2rem; }
.feature-figure { margin: 40px 0 0; padding: 16px; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; }
.feature-figure img { display: block; width: 100%; height: auto; border-radius: 8px; background: white; }
.feature-figure figcaption { margin-top: 12px; color: var(--muted); font-size: .92rem; }

footer { border-top: 1px solid var(--line); padding: 28px 0; color: var(--muted); font-size: .88rem; background: #061522; }
.footer-wrap { display: flex; justify-content: space-between; gap: 20px; }
.research-hero {
  position: relative;
  min-height: 650px;
}

.research-text,
.research-intro,
.research-body {
  position: relative;
  z-index: 2;
  max-width: 650px;
}

.research-art {
  position: absolute;
  z-index: 1;

  width: 80%;
  right: -350px;
  top: 50%;
  transform: translateY(-50%);

  margin: 0;
  opacity: 0.5;
  pointer-events: none;
}
.research-art img {
  display: block;
  width: 100%;
  height: auto;
}



@media (max-width: 800px) {
  .nav-wrap { align-items: flex-start; flex-direction: column; padding: 15px 0; gap: 10px; }
  .brand-name { display: none; }
  nav { width: 100%; overflow-x: auto; flex-wrap: nowrap; padding-bottom: 3px; }
  nav a { white-space: nowrap; }
  .research-grid, .people-grid { grid-template-columns: 1fr; }
  .home-strip-inner { align-items: flex-start; flex-direction: column; padding: 25px 0; }
  .footer-wrap { flex-direction: column; }

  .research-hero { min-height: auto; }
  .research-text,
  .research-intro,
  .research-body { max-width: none; }
  .research-art {
    position: static;
    width: 100%;
    right: auto;
    top: auto;
    transform: none;
    margin: 24px 0 28px;
    opacity: 0.65;
  }
}
