:root {
  color-scheme: light;
  --bg: #ffffff;
  --panel: #f5f7fb;
  --panel-strong: #eef2f9;
  --text: #10192b;
  --muted: #5b6472;
  --line: #e3e7ee;
  --navy: #0b2545;
  --blue: #1d4ed8;
  --blue-soft: #eaf0ff;
  --content: 1180px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; overflow-x: hidden; }
body { margin: 0; background: var(--bg); color: var(--text); font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", Inter, "Helvetica Neue", "Pretendard", "Apple SD Gothic Neo", Arial, sans-serif; line-height: 1.6; }
a { color: inherit; text-decoration: none; }
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible { outline: 2px solid var(--blue); outline-offset: 3px; }
.skip-link { position: absolute; left: -9999px; top: 1rem; background: var(--navy); color: #fff; padding: .7rem 1rem; z-index: 20; border-radius: 6px; }
.skip-link:focus { left: 1rem; }

/* Header */
.site-header { width: min(calc(100% - 64px), var(--content)); margin: 0 auto; min-height: 96px; display: flex; align-items: center; justify-content: space-between; gap: 2rem; border-bottom: 1px solid var(--line); }
.brand { font-size: clamp(1.2rem, 2vw, 1.5rem); font-weight: 700; letter-spacing: -.03em; white-space: nowrap; color: var(--navy); }
.site-nav { display: flex; flex-wrap: wrap; gap: .55rem 1.3rem; justify-content: flex-end; }
.site-nav a { color: var(--muted); font-size: .88rem; font-weight: 500; transition: color .2s; padding-bottom: .2rem; border-bottom: 2px solid transparent; }
.site-nav a:hover { color: var(--navy); }
.site-nav a.is-active { color: var(--blue); border-bottom-color: var(--blue); }
.nav-toggle { display: none; }
.site-main { width: min(calc(100% - 64px), var(--content)); margin: 0 auto; }

/* Hero */
.hero-banner { width: 100%; overflow: hidden; }
.imgBox { width: 100%; max-width: 100%; aspect-ratio: 2048 / 768; max-height: 620px; overflow: hidden; background: var(--navy); }
.imgBox img { width: 100%; max-width: 100%; height: 100%; object-fit: cover; display: block; }
.hero-intro { padding: clamp(2.5rem, 5vw, 3.5rem) 0 clamp(2rem, 4vw, 3rem); max-width: 700px; }
.eyebrow { color: var(--blue); font-size: .78rem; letter-spacing: .18em; font-weight: 700; text-transform: uppercase; }
.hero-intro .eyebrow { display: block; margin-bottom: .9rem; }
.hero-copy { color: var(--muted); max-width: 560px; font-size: clamp(1rem, 2vw, 1.2rem); margin: 0; }
.text-link { display: inline-flex; gap: .6rem; align-items: center; margin-top: 1.5rem; border-bottom: 1px solid var(--navy); padding: .4rem 0 .5rem; font-weight: 600; }
.text-link:hover { border-color: var(--blue); color: var(--blue); }

/* Home menu grid */
.home-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-top: 1px solid var(--line); border-left: 1px solid var(--line); border-radius: 16px; overflow: hidden; }
.menu-card { min-height: 160px; padding: 1.5rem; position: relative; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); background: var(--bg); transition: background .2s; }
.menu-card:hover { background: var(--panel); }
.card-number { color: var(--blue); font-size: .78rem; font-weight: 700; }
.menu-card h2 { font-size: clamp(1.1rem, 2.2vw, 1.5rem); font-weight: 650; margin: 2.2rem 0 0; letter-spacing: -.02em; color: var(--navy); }
.card-arrow { position: absolute; right: 1.5rem; top: 1.4rem; color: var(--muted); }

/* Home dynamic sections */
.home-section { padding: clamp(3rem, 6vw, 5rem) 0; border-top: 1px solid var(--line); }
.home-section-head { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; margin-bottom: 1.75rem; flex-wrap: wrap; }
.home-section-head h2 { font-size: clamp(1.4rem, 3vw, 2rem); letter-spacing: -.02em; color: var(--navy); margin: 0; }
.home-section-head .text-link { margin-top: 0; }
.empty-note { color: var(--muted); font-size: .95rem; padding: 1.5rem; background: var(--panel); border-radius: 12px; }

/* Page intro */
.page-intro { padding: clamp(4rem, 9vw, 6rem) 0 3rem; max-width: 800px; }
.page-intro h1 { font-size: clamp(2.2rem, 5.5vw, 4rem); letter-spacing: -.03em; line-height: 1.06; font-weight: 700; margin: .5rem 0 1.25rem; color: var(--navy); }
.page-intro p { color: var(--muted); font-size: 1.08rem; }
.content-section { padding-bottom: 4rem; }
.content-section + .content-section { border-top: 1px solid var(--line); padding-top: 3rem; }
.section-head { font-size: clamp(1.3rem, 2.6vw, 1.7rem); letter-spacing: -.02em; color: var(--navy); margin: 0 0 1.5rem; }
.section-lead { color: var(--muted); max-width: 720px; margin: -1rem 0 1.75rem; }

/* Card grid (Leadership / Lab / general) */
.card-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 1.25rem; }
.info-card { padding: 1.6rem; background: var(--panel); border: 1px solid var(--line); border-radius: 14px; }
.info-card h3 { margin: 0 0 .6rem; color: var(--navy); font-size: 1.1rem; letter-spacing: -.01em; }
.info-card p { margin: 0; color: var(--muted); font-size: .95rem; }

/* Timeline (My Journey) */
.timeline { position: relative; margin: 0; padding-left: 1.6rem; border-left: 2px solid var(--line); }
.timeline-item { position: relative; padding: 0 0 2.5rem 1.4rem; }
.timeline-item:last-child { padding-bottom: 0; }
.timeline-item::before { content: ''; position: absolute; left: -2.05rem; top: .3rem; width: 12px; height: 12px; border-radius: 50%; background: var(--blue); border: 3px solid var(--blue-soft); }
.timeline-year { color: var(--blue); font-weight: 700; font-size: .85rem; letter-spacing: .05em; }
.timeline-item h3 { margin: .3rem 0 .4rem; color: var(--navy); font-size: 1.2rem; }
.timeline-item p { margin: 0; color: var(--muted); }

/* Publications */
.pub-featured { margin-bottom: 2.5rem; }
.pub-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 1rem; }
.pub-item { padding: 1.25rem 1.4rem; background: var(--panel); border: 1px solid var(--line); border-radius: 12px; display: flex; flex-direction: column; gap: .35rem; }
.pub-item .pub-title { font-weight: 650; color: var(--navy); font-size: 1.02rem; }
.pub-item .pub-meta { color: var(--muted); font-size: .9rem; }
.pub-badge { display: inline-block; font-size: .72rem; font-weight: 700; letter-spacing: .04em; color: var(--blue); background: var(--blue-soft); padding: .2rem .55rem; border-radius: 999px; width: fit-content; }

/* Books */
.book-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 1.5rem; }
.book-card { border: 1px solid var(--line); border-radius: 14px; overflow: hidden; background: var(--panel); }
.book-cover { aspect-ratio: 3/4; background: linear-gradient(160deg, var(--navy), var(--blue)); display: flex; align-items: center; justify-content: center; color: rgba(255,255,255,.8); font-size: .85rem; padding: 1rem; text-align: center; }
.book-cover img { width: 100%; height: 100%; object-fit: cover; }
.book-body { padding: 1rem 1.1rem 1.3rem; }
.book-body h3 { margin: 0 0 .4rem; font-size: 1.02rem; color: var(--navy); }
.book-body p { margin: 0; color: var(--muted); font-size: .88rem; }

/* Media / gallery */
.gallery-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 1.25rem; }
.gallery-item { border-radius: 14px; overflow: hidden; border: 1px solid var(--line); background: var(--panel); }
.gallery-figure { aspect-ratio: 4/3; background: var(--panel-strong); display: flex; align-items: center; justify-content: center; color: var(--muted); font-size: .85rem; }
.gallery-figure img { width: 100%; height: 100%; object-fit: cover; display: block; }
.gallery-body { padding: 1rem 1.1rem 1.2rem; }
.gallery-body h3 { margin: 0 0 .3rem; font-size: 1rem; color: var(--navy); }
.gallery-body p { margin: 0; color: var(--muted); font-size: .85rem; }

/* Blog */
.blog-list { display: grid; gap: 1.25rem; }
.blog-item { padding: 1.5rem; border: 1px solid var(--line); border-radius: 14px; background: var(--panel); display: block; transition: box-shadow .2s, border-color .2s; }
.blog-item:hover { border-color: var(--blue); box-shadow: 0 8px 24px rgba(29,78,216,.08); }
.blog-category { color: var(--blue); font-size: .75rem; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; }
.blog-item h3 { margin: .5rem 0 .4rem; color: var(--navy); font-size: 1.25rem; }
.blog-item p { margin: 0; color: var(--muted); }
.blog-date { color: var(--muted); font-size: .82rem; }
.blog-post-body { max-width: 720px; color: var(--text); font-size: 1.05rem; line-height: 1.8; }
.blog-post-body p { margin: 0 0 1.2rem; }

/* Forms */
.form-grid { display: grid; gap: 1.1rem; max-width: 560px; }
.form-field label { display: block; font-size: .85rem; font-weight: 600; color: var(--navy); margin-bottom: .4rem; }
.form-field input, .form-field textarea { width: 100%; padding: .75rem .9rem; border: 1px solid var(--line); border-radius: 10px; font: inherit; color: var(--text); background: var(--bg); }
.form-field input:focus, .form-field textarea:focus { border-color: var(--blue); }
.btn { display: inline-flex; align-items: center; gap: .5rem; padding: .8rem 1.5rem; border-radius: 999px; border: none; background: var(--navy); color: #fff; font-weight: 650; font-size: .95rem; cursor: pointer; }
.btn:hover { background: var(--blue); }
.form-note { font-size: .85rem; color: var(--muted); }
.contact-links { display: flex; flex-wrap: wrap; gap: .75rem; margin: 1.5rem 0 2.5rem; }
.contact-links a { border: 1px solid var(--line); border-radius: 999px; padding: .5rem 1.1rem; font-size: .88rem; font-weight: 600; color: var(--navy); }
.contact-links a:hover { border-color: var(--blue); color: var(--blue); }

/* Footer */
.site-footer { width: min(calc(100% - 64px), var(--content)); margin: 6rem auto 0; padding: 1.5rem 0 2rem; border-top: 1px solid var(--line); display: flex; justify-content: space-between; color: var(--muted); font-size: .85rem; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }

@media (max-width: 900px) {
  .site-header { width: min(calc(100% - 40px), var(--content)); min-height: 82px; }
  .site-main, .site-footer { width: min(calc(100% - 40px), var(--content)); }
  .site-nav { gap: .5rem .8rem; }
  .home-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 620px) {
  .site-header { position: relative; }
  .nav-toggle { display: flex; flex-direction: column; gap: 5px; border: 1px solid var(--line); border-radius: 999px; background: transparent; padding: 12px; }
  .nav-toggle span:not(.sr-only) { display: block; width: 20px; height: 1px; background: var(--navy); }
  .site-nav { display: none; position: absolute; top: 70px; left: 0; right: 0; z-index: 10; padding: 1rem; background: #fff; border: 1px solid var(--line); border-radius: 12px; flex-direction: column; box-shadow: 0 12px 30px rgba(16,25,43,.08); }
  .site-nav.is-open { display: flex; }
  .site-nav a { padding: .5rem 0; border-bottom: none; }
  .hero-banner { display: none; }
  .hero-intro { padding-top: 3rem; }
  .home-grid { grid-template-columns: 1fr; border-radius: 0; }
  .menu-card { min-height: 130px; }
  .menu-card h2 { margin-top: 1.5rem; }
  .site-main, .site-footer { width: calc(100% - 32px); }
  .site-footer { gap: 1rem; flex-wrap: wrap; }
}
