:root {
  --ink: #17212b;
  --muted: #596875;
  --line: #d9e0e5;
  --paper: #ffffff;
  --tint: #f2f6f7;
  --accent: #00686b;
  --accent-dark: #004e51;
  --deep: #172e37;
  --warm: #f2ece2;
  --max: 1160px;
  --reading: 760px;
  color-scheme: light;
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
  font-synthesis: none;
  line-height: 1.65;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; color: var(--ink); background: var(--paper); }
img { display: block; max-width: 100%; }
a { color: inherit; text-underline-offset: 0.2em; }
a:hover { color: var(--accent); }

.container { width: min(var(--max), calc(100% - 3rem)); margin-inline: auto; }
.narrow { max-width: var(--reading); }
.skip-link { position: fixed; left: 1rem; top: -5rem; z-index: 10; padding: 0.7rem 1rem; color: white; background: var(--deep); }
.skip-link:focus { top: 1rem; }

.site-header { position: relative; z-index: 2; border-bottom: 1px solid var(--line); background: rgba(255,255,255,0.97); }
.nav-wrap { min-height: 4.5rem; display: flex; align-items: center; justify-content: space-between; gap: 2rem; }
.site-name { font-size: 1.08rem; font-weight: 760; letter-spacing: -0.02em; text-decoration: none; }
nav { display: flex; gap: 1.4rem; }
nav a { padding: 0.35rem 0; color: var(--muted); font-size: 0.92rem; font-weight: 650; text-decoration: none; }
nav a[aria-current="page"] { color: var(--ink); box-shadow: inset 0 -2px var(--accent); }

.hero { overflow: hidden; padding: clamp(3.8rem, 7vw, 6.2rem) 0; background: linear-gradient(130deg, #f7faf9 0%, #edf5f4 70%, #e3eff0 100%); }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.08fr) minmax(320px, 0.92fr); align-items: center; gap: clamp(2.5rem, 6vw, 6rem); }
.hero-copy { position: relative; z-index: 1; }
.eyebrow, .section-kicker, .panel-label, .pub-meta { margin: 0 0 0.9rem; color: var(--accent); font-size: 0.76rem; font-weight: 800; letter-spacing: 0.13em; text-transform: uppercase; }
h1, h2, h3 { margin-top: 0; line-height: 1.16; letter-spacing: -0.03em; }
h1 { margin-bottom: 1rem; font-family: Georgia, "Times New Roman", serif; font-size: clamp(3rem, 7vw, 5.5rem); font-weight: 500; }
h2 { margin-bottom: 1.15rem; font-size: clamp(1.75rem, 3vw, 2.5rem); }
h3 { font-size: 1.28rem; }
p { margin: 0 0 1rem; }
.hero-role { margin: 0; font-size: 1.28rem; font-weight: 760; }
.hero-affiliation { max-width: 46rem; margin: 0.35rem 0 1.5rem; color: var(--muted); }
.hero-affiliation a { text-decoration: none; }
.lede { max-width: 46rem; color: #32434d; font-size: clamp(1.08rem, 1.7vw, 1.3rem); line-height: 1.55; }
.hero-portrait { position: relative; margin: 0; }
.hero-portrait::before { content: ""; position: absolute; inset: -1rem 1rem 1rem -1rem; border: 1px solid rgba(0,104,107,0.22); }
.hero-portrait img { position: relative; width: 100%; max-height: 610px; aspect-ratio: 4 / 5; object-fit: cover; object-position: center 38%; box-shadow: 0 20px 55px rgba(27,54,60,0.18); }
.hero-portrait figcaption { position: relative; margin-top: 0.7rem; color: var(--muted); font-size: 0.83rem; }
.hero-panorama { margin: clamp(2.2rem, 4vw, 3.5rem) 0 0; }
.hero-panorama a { display: block; }
.hero-panorama img { width: 100%; height: auto; border: 1px solid rgba(0,104,107,0.2); }
.hero-panorama figcaption { margin-top: 0.55rem; color: var(--muted); font-size: 0.78rem; }
.button-row { display: flex; flex-wrap: wrap; gap: 0.8rem; margin-top: 1.8rem; }
.button { display: inline-block; padding: 0.75rem 1.05rem; border: 1px solid #aebbc0; border-radius: 0.2rem; font-size: 0.9rem; font-weight: 750; text-decoration: none; }
.button-primary { color: white; border-color: var(--accent); background: var(--accent); }
.button-primary:hover { color: white; background: var(--accent-dark); }
.button-light { color: white; border-color: #8fa1a8; }
.button-light:hover { color: white; border-color: white; }

.section { padding: clamp(4rem, 7vw, 6.5rem) 0; }
.section-tint { background: var(--tint); }
.section-dark { color: #f5f8f8; background: var(--deep); }
.section-dark .section-kicker { color: #8dd2d0; }
.section-dark h2 { color: white; }
.split { display: grid; grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr); gap: clamp(3rem, 7vw, 7rem); }
.prose { max-width: 48rem; color: #354651; font-size: 1.04rem; }
.section-heading-row { display: flex; align-items: end; justify-content: space-between; gap: 2rem; margin-bottom: 2.5rem; }
.section-heading-row h2 { margin-bottom: 0; }
.text-link { color: var(--accent-dark); font-weight: 780; text-decoration-thickness: 1px; }

.vision-section { color: #f6f9f9; background: var(--deep); }
.vision-section .section-kicker { color: #8dd2d0; }
.vision-grid { display: grid; grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr); gap: clamp(3rem, 7vw, 7rem); align-items: start; }
.vision-lede { max-width: 34rem; color: #c4d0d4; font-size: 1.08rem; }
.purpose-list { margin: 0; padding: 0; list-style: none; border-top: 1px solid rgba(255,255,255,0.2); }
.purpose-list li { display: grid; grid-template-columns: 2.6rem 10rem 1fr; gap: 1rem; align-items: baseline; padding: 0.95rem 0; border-bottom: 1px solid rgba(255,255,255,0.2); }
.purpose-list li > span { color: #8dd2d0; font-size: 0.76rem; font-weight: 800; }
.purpose-list strong { color: white; }
.purpose-list small { color: #c4d0d4; font-size: 0.9rem; }

#highlights .container { counter-reset: research-story; }
.story { position: relative; isolation: isolate; display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(300px, 0.85fr); gap: clamp(2.5rem, 6vw, 5.5rem); align-items: center; padding: 4.5rem 0; border-top: 1px solid var(--line); counter-increment: research-story; }
.story::before { content: counter(research-story, decimal-leading-zero); position: absolute; z-index: 0; top: 1.4rem; right: 0; color: rgba(0,104,107,0.075); font-family: Georgia, "Times New Roman", serif; font-size: clamp(5rem, 11vw, 9rem); font-weight: 700; line-height: 0.8; letter-spacing: -0.08em; }
.story > * { position: relative; z-index: 1; }
.story:last-child { border-bottom: 1px solid var(--line); }
.story-featured { margin: 2rem 0 1rem; padding: clamp(2rem, 4vw, 3.5rem); border: 1px solid #cadcdb; border-radius: 0.7rem; background: linear-gradient(135deg, rgba(255,255,255,0.98), rgba(225,240,238,0.82)); box-shadow: 0 24px 60px rgba(23,46,55,0.09); }
.story-featured::before { top: 1.1rem; right: 1.4rem; color: rgba(0,104,107,0.1); }
.story-reverse .story-figure { order: 2; }
.story-reverse .story-copy { order: 1; }
.story-reverse::before { right: auto; left: 0; }
.story-figure, .research-visual { position: relative; margin: 0; }
.story-figure img, .research-visual img { width: 100%; border: 1px solid #ced8dc; border-radius: 0.45rem; background: white; box-shadow: 0 16px 38px rgba(23,46,55,0.11); }
.story-figure figcaption, .research-visual figcaption { margin-top: 0.8rem; color: var(--muted); font-size: 0.83rem; line-height: 1.45; }
.story-copy { padding-left: 1.35rem; border-left: 3px solid rgba(0,104,107,0.28); }
.story-reverse .story-copy { padding-right: 1.35rem; padding-left: 0; border-right: 3px solid rgba(0,104,107,0.28); border-left: 0; }
.story-featured .story-copy { border-color: var(--accent); }
.story-copy h3 { margin-bottom: 1rem; font-size: clamp(1.55rem, 2.8vw, 2.2rem); }
.story-copy p:not(.story-number) { color: #354651; }
.story-number, .role-org, .timeline-label { margin-bottom: 0.7rem; color: var(--accent); font-size: 0.76rem; font-weight: 820; letter-spacing: 0.11em; text-transform: uppercase; }
.story .story-number::after, .research-chapter .story-number::after { content: ""; display: inline-block; width: 2.4rem; height: 1px; margin-left: 0.7rem; vertical-align: middle; background: currentColor; opacity: 0.48; }
.figure-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 0.75rem; }
.figure-pair figcaption { grid-column: 1 / -1; }

.role-list { margin-top: 2.3rem; border-top: 1px solid var(--line); }
.role-list article { display: grid; grid-template-columns: minmax(280px, 0.95fr) minmax(0, 1.05fr); gap: 3rem; padding: 1.65rem 0; border-bottom: 1px solid var(--line); }
.role-list h3, .role-list p { margin-top: 0; }
.role-list h3 { margin-bottom: 0; }
.role-list article > p { margin: 0; color: var(--muted); }
.role-list a { color: var(--accent-dark); }

.publication-list { margin: 2.3rem 0 2rem; padding: 0; list-style: none; }
.publication-list li { display: grid; grid-template-columns: 5rem 1fr; gap: 1.5rem; padding: 1.4rem 0; border-top: 1px solid rgba(255,255,255,0.18); }
.publication-list li:last-child { border-bottom: 1px solid rgba(255,255,255,0.18); }
.publication-list a { color: white; font-size: 1.05rem; font-weight: 700; }
.publication-list a:hover { color: #8dd2d0; }
.publication-list p { margin: 0.3rem 0 0; color: #b9c7cc; font-size: 0.9rem; }
.pub-year { color: #8dd2d0; font-weight: 800; }

.profile-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; margin-top: 2.2rem; }
.profile-link { min-height: 8.2rem; display: flex; flex-direction: column; justify-content: space-between; padding: 1.3rem; border: 1px solid var(--line); background: white; text-decoration: none; transition: transform 140ms ease, border-color 140ms ease; }
.profile-link:hover { transform: translateY(-2px); border-color: #93afb0; }
.profile-link strong { font-size: 1.08rem; }
.profile-link span { color: var(--muted); font-size: 0.88rem; }
.profile-primary { border-top: 3px solid var(--accent); }
.profile-pending { border-style: dashed; background: transparent; }
.profile-pending strong, .profile-pending span { color: var(--muted); }
.profile-placeholder-inline { color: var(--muted); }
.verification-note { margin-top: 1rem; color: var(--muted); font-size: 0.85rem; }

.page-header { padding: clamp(4rem, 7vw, 6rem) 0; border-bottom: 1px solid var(--line); background: linear-gradient(130deg, #f7faf9, #edf5f4); }
.page-header h1 { font-size: clamp(2.65rem, 5.5vw, 4.3rem); }
.research-intro { padding-bottom: 4.5rem; }
.research-chapter { position: relative; overflow: hidden; padding: clamp(4rem, 7vw, 6.5rem) 0; }
.research-layout { position: relative; display: grid; grid-template-columns: minmax(320px, 0.8fr) minmax(0, 1.2fr); gap: clamp(3rem, 6vw, 6rem); align-items: center; }
.research-layout-reverse .research-copy { order: 2; }
.research-layout-reverse .research-visual { order: 1; }
.research-copy { padding: 1.2rem 0 1.2rem 1.45rem; border-left: 3px solid rgba(0,104,107,0.32); }
.research-copy h2 { font-size: clamp(1.8rem, 3vw, 2.5rem); }
.research-copy p { color: #354651; }
.research-copy strong { color: var(--ink); }
.milestone-note { padding-left: 1rem; border-left: 3px solid #b98b47; font-size: 0.9rem; }
.research-visual img { max-height: 560px; object-fit: contain; }
.research-visual.figure-pair img { align-self: stretch; max-height: 400px; object-fit: contain; }
.earlier-work { border-top: 1px solid var(--line); }

.facility-view { overflow: hidden; }
.facility-view .section-kicker { color: #8dd2d0; }
.facility-heading { align-items: end; }
.facility-heading > div { max-width: 48rem; }
.facility-heading p { margin-bottom: 0; color: #c4d0d4; }
.scroll-hint { flex: 0 0 auto; color: #8dd2d0 !important; font-size: 0.83rem; font-weight: 750; letter-spacing: 0.04em; text-transform: uppercase; }
.panorama-figure { margin: 2rem 0 0; }
.panorama-scroll { overflow-x: auto; overflow-y: hidden; border: 1px solid rgba(255,255,255,0.24); background: #0c1b21; -webkit-overflow-scrolling: touch; scrollbar-color: #8dd2d0 #243b44; }
.panorama-scroll:focus-visible { outline: 3px solid #8dd2d0; outline-offset: 4px; }
.panorama-scroll img { width: auto; min-width: 100%; max-width: none; height: clamp(220px, 28vw, 340px); }
.panorama-figure figcaption { max-width: 58rem; margin-top: 0.9rem; color: #b9c7cc; font-size: 0.83rem; line-height: 1.5; }

.publication-page-list { max-width: 930px; }
.publication-page-list article { padding: 2.4rem 0; border-top: 1px solid var(--line); }
.publication-page-list article:last-child { border-bottom: 1px solid var(--line); }
.publication-page-list h2 { max-width: 54rem; margin-bottom: 0.7rem; font-size: clamp(1.3rem, 2.3vw, 1.75rem); line-height: 1.3; }
.publication-page-list h2 a { text-decoration-thickness: 1px; }
.publication-page-list article > p:last-child { max-width: 48rem; color: var(--muted); }
.pub-meta { margin-bottom: 0.8rem; }

.profile-header { padding: 3.5rem 0; }
.profile-header-grid { display: grid; grid-template-columns: 1fr 220px; gap: 4rem; align-items: center; }
.profile-header-grid img { width: 220px; height: 260px; object-fit: cover; object-position: center 32%; box-shadow: 0 12px 30px rgba(27,54,60,0.14); }
.profile-sections { max-width: 930px; }
.profile-sections > section { margin-bottom: 5rem; }
.timeline { border-top: 1px solid var(--line); }
.timeline article { padding: 1.7rem 0; border-bottom: 1px solid var(--line); }
.timeline h2 { margin-bottom: 0.35rem; font-size: 1.35rem; }
.timeline article > p:last-child { max-width: 48rem; color: var(--muted); }
.timeline-label { margin-bottom: 0.45rem; }
.timeline-label a { text-decoration: none; }
.activity-list { margin: 0; padding: 0; list-style: none; border-top: 1px solid var(--line); }
.activity-list li { display: grid; grid-template-columns: 4.5rem 1fr; gap: 1.2rem; padding: 1rem 0; border-bottom: 1px solid var(--line); }
.activity-list span { color: var(--accent); font-weight: 800; }
.compact-profiles { grid-template-columns: repeat(3, 1fr); }

.site-footer { padding: 3rem 0; color: #c2cdd0; background: #10232b; font-size: 0.88rem; }
.footer-grid { display: grid; grid-template-columns: 1.2fr 1fr auto; align-items: end; gap: 2rem; }
.site-footer p { margin: 0; }
.site-footer a { color: white; }
.footer-meta { text-align: right; }

@media (max-width: 900px) {
  .hero-grid, .vision-grid, .research-layout { grid-template-columns: 1fr; }
  .hero-portrait { max-width: 620px; }
  .research-layout-reverse .research-copy, .research-layout-reverse .research-visual { order: initial; }
  .purpose-list li { grid-template-columns: 2.3rem 9rem 1fr; }
  .story { grid-template-columns: 1fr; }
  .story-reverse .story-figure, .story-reverse .story-copy { order: initial; }
  .story-reverse::before { right: 0; left: auto; }
  .story-reverse .story-copy { padding-right: 0; padding-left: 1.35rem; border-right: 0; border-left: 3px solid rgba(0,104,107,0.28); }
}

@media (max-width: 700px) {
  .container { width: min(100% - 2rem, var(--max)); }
  .nav-wrap { padding: 0.85rem 0; align-items: flex-start; flex-direction: column; gap: 0.45rem; }
  nav { width: 100%; gap: 1rem; overflow-x: auto; }
  .hero { padding-top: 3rem; }
  .hero-grid, .split { grid-template-columns: 1fr; }
  .hero-portrait img { max-height: 520px; }
  .purpose-list li { grid-template-columns: 2rem 1fr; gap: 0.65rem; }
  .purpose-list small { grid-column: 2; }
  .section-heading-row { align-items: flex-start; flex-direction: column; }
  .facility-heading { gap: 0.6rem; }
  .panorama-scroll img { min-width: 0; height: 250px; }
  .story { padding: 3rem 0; }
  .story-featured { padding: 1.4rem; }
  .story::before { top: 1rem; font-size: 5rem; }
  .story-copy, .story-reverse .story-copy { padding-left: 1rem; }
  .figure-pair { grid-template-columns: 1fr; }
  .figure-pair figcaption { grid-column: auto; }
  .role-list article { grid-template-columns: 1fr; gap: 0.45rem; }
  .profile-grid, .compact-profiles { grid-template-columns: 1fr; }
  .publication-list li { grid-template-columns: 3.6rem 1fr; gap: 0.8rem; }
  .profile-header-grid { grid-template-columns: 1fr; gap: 1.5rem; }
  .profile-header-grid img { width: 160px; height: 190px; }
  .footer-grid { grid-template-columns: 1fr; align-items: start; }
  .footer-meta { text-align: left; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .profile-link { transition: none; }
}

@media print {
  .site-header, .button-row, .site-footer { display: none; }
  .hero, .section, .page-header, .research-chapter { padding: 1.5rem 0; background: white; color: black; }
  a { text-decoration: none; }
}
