:root {
  --ink: #183742;
  --ink-deep: #102b34;
  --body: #3d5054;
  --muted: #687a7b;
  --paper: #f8f8f4;
  --white: #fff;
  --line: #d9dfda;
  --tint: #eef2ed;
  --peach: #d89770;
  --peach-light: #f0c5a6;
  --serif: "Iowan Old Style", "Baskerville", "Palatino Linotype", Georgia, serif;
  --sans: "Avenir Next", Avenir, "Segoe UI", Helvetica, Arial, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 90px; }
body { margin: 0; color: var(--body); background: var(--paper); font: 16px/1.65 var(--sans); -webkit-font-smoothing: antialiased; }
a { color: inherit; text-decoration: none; }
a:hover { color: #ad583b; }
a:focus-visible, summary:focus-visible { outline: 3px solid var(--peach); outline-offset: 4px; border-radius: 2px; }
img, svg { max-width: 100%; }
.container { width: min(1180px, calc(100% - 64px)); margin-inline: auto; }
.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; }
.skip-link { position: absolute; top: -60px; left: 16px; z-index: 100; padding: 10px 16px; background: var(--ink); color: var(--white); }
.skip-link:focus { top: 10px; }
.research-note {
  margin: 28px 0 0;
  font-size: 15px;
  line-height: 1.8;
  color: #657779;
}
.site-header { position: sticky; top: 0; z-index: 20; background: rgba(248,248,244,.97); border-bottom: 1px solid var(--line); backdrop-filter: blur(12px); }
.header-inner { min-height: 80px; display: flex; align-items: center; gap: 32px; }
.brand { display: inline-flex; align-items: center; flex: none; color: var(--ink); font-weight: 700; letter-spacing: -.025em; }
.brand:hover { color: var(--ink); }
.brand-name { font-size: 17px; white-space: nowrap; }
.primary-nav { display: flex; flex: 1; justify-content: center; align-items: center; gap: clamp(16px,2.2vw,32px); }
.primary-nav a { font-size: 12px; font-weight: 700; letter-spacing: .025em; white-space: nowrap; color: #42565a; transition: color .15s; }
.primary-nav a:hover { color: #ad583b; }
.header-actions { display: flex; flex: none; align-items: center; gap: 18px; }
.language-switch { display: inline-flex; align-items: center; gap: 5px; color: #9aa8a6; font-size: 10px; font-weight: 800; letter-spacing: .08em; line-height: 1; }
.language-switch a { padding: 5px 0 4px; color: #7a8a89; }
.language-switch a:hover { color: #ad583b; }
.language-switch a[aria-current="page"] { color: var(--ink); border-bottom: 1px solid var(--ink); }
.header-contact { flex: none; font-size: 12px; color: var(--ink); font-weight: 800; border-bottom: 1px solid var(--ink); padding-bottom: 2px; white-space: nowrap; }
.header-contact span { margin-left: 5px; }

.hero { overflow: hidden; background: #f4f5ef; border-bottom: 1px solid var(--line); }
.hero-grid { display: grid; grid-template-columns: minmax(0,1.12fr) minmax(0,.88fr); align-items: stretch; min-height: 600px; gap: 6.5%; padding-top: 70px; padding-bottom: 70px; }
.hero-copy { align-self: center; padding-block: 18px; }
.eyebrow, .section-index { margin: 0; color: #98694f; font-size: 11px; line-height: 1.4; font-weight: 800; letter-spacing: .17em; text-transform: uppercase; }
.eyebrow { display: flex; align-items: center; gap: 11px; }
.eyebrow-line { width: 29px; height: 1px; background: #b7785c; }
h1, h2, h3, p { margin-top: 0; }
h1, h2, h3 { color: var(--ink); }
h1, h2 { font-family: var(--serif); font-weight: 500; letter-spacing: -.047em; }
h1 { max-width: 760px; margin: 25px 0 24px; font-size: clamp(46px,5.3vw,78px); line-height: 1.08; }
h1 em { font-weight: 400; font-style: italic; color: #986447; }
.hero-intro { max-width: 570px; font-size: 18px; line-height: 1.75; color: #43585a; }
.hero-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 12px; margin-top: 35px; }
.button { display: inline-flex; align-items: center; justify-content: space-between; gap: 26px; min-height: 48px; padding: 11px 18px; border-radius: 3px; font-size: 13px; font-weight: 800; transition: transform .16s, background .16s, color .16s; }
.button:hover { transform: translateY(-2px); }
.button-primary { background: var(--ink); color: #fff; }
.button-primary:hover { background: #2a5360; color: #fff; }
.button-secondary { border: 1px solid #b9c8c5; color: var(--ink); }
.button-secondary:hover { background: #fff; color: var(--ink); }
.hero-affiliation { margin: 31px 0 0; max-width: 510px; font-size: 13px; line-height: 1.7; color: var(--muted); }
.hero-affiliation a { text-decoration: underline; text-decoration-color: #a5b9b3; text-underline-offset: 3px; }
.hero-visual { min-height: 455px; display: flex; flex-direction: column; justify-content: flex-start; background: var(--ink); color: #f8f6ef; padding: 27px; box-shadow: 18px 18px 0 #e5e9e1; }
.visual-top, .visual-bottom { display: flex; justify-content: space-between; gap: 10px; font-size: 10px; font-weight: 700; letter-spacing: .15em; color: #a9c6bd; }
.visual-bottom { margin-top: auto; color: #e9bd9f; }
.hero-portrait-frame { display: grid; place-items: center; margin: 15px 0 10px; overflow: hidden; background: #101719; border: 1px solid #42606a; }
.hero-portrait-photo { display: block; width: 100%; height: auto; }
.mini-branch-art { display: block; width: 100%; height: auto; margin: 0 auto 14px; }

.recognition { background: var(--ink-deep); color: #fff; }
.recognition-inner { display: grid; grid-template-columns: repeat(3,1fr); }
.recognition p { margin: 0; display: flex; align-items: center; flex-wrap: wrap; gap: 10px; min-height: 82px; padding: 17px 28px; border-right: 1px solid #42606a; font-size: 12px; color: #c6d6d1; }
.recognition p:first-child { padding-left: 0; }
.recognition p:last-child { border-right: 0; }
.recognition strong { color: #f7f6f2; font-size: 13px; }

.section { padding: 108px 0; }
.two-col-intro { display: grid; grid-template-columns: .5fr 1.5fr; gap: 9%; }
h2 { font-size: clamp(39px,4vw,58px); line-height: 1.13; margin: 17px 0 0; }
.prose { font-size: 17px; line-height: 1.85; }
.prose p { margin-bottom: 20px; }
.prose > p a { text-decoration: underline; text-decoration-color: #aec0b8; text-underline-offset: 4px; }
.inline-links { display: flex; flex-wrap: wrap; gap: 15px 28px; margin-top: 30px; }
.inline-links a, .text-link { color: var(--ink); font-size: 13px; font-weight: 800; border-bottom: 1px solid #9baca7; padding-bottom: 4px; white-space: nowrap; }
.inline-links a:hover, .text-link:hover { color: #ad583b; border-color: #ad583b; }
.section-heading { display: flex; align-items: end; justify-content: space-between; gap: 42px; margin-bottom: 43px; }
.section-heading h2 { max-width: 620px; }
.section-lead { max-width: 500px; margin: 0 0 4px; font-size: 15px; line-height: 1.8; color: #657779; }

.research-section { background: var(--tint); }
.research-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 16px; }
.research-card { display: flex; flex-direction: column; min-height: 295px; padding: 29px 30px 28px; background: #fbfcf8; border: 1px solid #e2e7e1; }
.card-number { font-family: var(--serif); font-size: 18px; color: #b07b60; }
.research-card h3 { margin: 27px 0 13px; font-family: var(--serif); font-size: 27px; font-weight: 500; letter-spacing: -.035em; line-height: 1.15; }
.research-card p { margin-bottom: 30px; font-size: 14px; line-height: 1.8; }
.card-rule { width: 35px; height: 2px; margin-top: auto; background: var(--peach); }

.publications-section { background: var(--paper); }
.section-heading-publications { align-items: end; }
.publication-list { border-top: 1px solid #b6c5bd; }
.publication { display: grid; grid-template-columns: 72px minmax(0,1fr) 94px; gap: 26px; padding: 24px 0 25px; border-bottom: 1px solid var(--line); }
.pub-year { padding-top: 3px; color: #996d55; font-family: var(--serif); font-size: 19px; }
.pub-venue { margin: 0 0 5px; color: #667f7e; font-size: 10px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
.publication h3 { margin: 0 0 6px; max-width: 820px; font-family: var(--serif); font-size: clamp(19px,2vw,24px); font-weight: 500; letter-spacing: -.018em; line-height: 1.32; }
.publication h3 a span { color: #ae7456; font: 17px var(--sans); white-space: nowrap; }
.pub-authors { margin: 0; color: #647476; font-size: 13px; line-height: 1.6; }
.pub-authors strong { color: #38505a; font-weight: 700; }
.author-note { color: #8f6e5b; }
.pub-extra { display: flex; gap: 18px; margin: 8px 0 0; font-size: 12px; color: #986447; font-weight: 800; }
.pub-tag { align-self: start; justify-self: end; padding: 5px 9px; background: #edf2ec; color: #58716b; font-size: 10px; letter-spacing: .07em; text-transform: uppercase; font-weight: 800; }
.full-bibliography { border-bottom: 1px solid var(--line); }
.full-bibliography summary { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 23px 1px; cursor: pointer; list-style: none; color: var(--ink); font-size: 14px; font-weight: 800; }
.full-bibliography summary::-webkit-details-marker { display: none; }
.summary-icon { color: #a36c50; font-size: 25px; line-height: 1; font-weight: 400; }
.full-bibliography[open] .summary-icon { transform: rotate(45deg); }
.bibliography-inner { padding: 0 0 30px; max-width: 930px; }
.bibliography-note { color: #72817d; font-size: 13px; }
.bib-group { margin-top: 30px; }
.bib-group h3 { margin: 0 0 13px; font-family: var(--serif); font-size: 23px; font-weight: 500; }
.bib-group ol { margin: 0; padding-left: 23px; }
.bib-group li { padding: 6px 0 6px 5px; font-size: 13px; line-height: 1.65; color: #526369; }
.bib-group li::marker { color: #a56e52; }
.bib-group li strong { color: var(--ink); font-weight: 700; }
.bib-group li em { color: #68807b; font-style: normal; }

.software-section { background: #e7eeea; }
.software-grid { display: grid; grid-template-columns: repeat(4,1fr); gap: 15px; }
.software-card { display: flex; flex-direction: column; min-height: 267px; padding: 25px 23px; background: #fbfcf8; color: var(--body); border: 1px solid #dce5df; transition: transform .16s, border-color .16s; }
.software-card:hover { transform: translateY(-3px); border-color: #b88f7b; color: var(--body); }
.software-card h3.software-title-long {
  display: flex;
  align-items: baseline;
  gap: 6px;
  font-size: 24px;
  white-space: nowrap;
}
.software-title-long span {
  flex: none;
}
.software-type { color: #9c6b51; font-size: 10px; font-weight: 800; letter-spacing: .14em; }
.software-card h3 { margin: 28px 0 9px; font-family: var(--serif); font-size: 27px; font-weight: 500; letter-spacing: -.035em; }
.software-card h3 span { font: 15px var(--sans); color: #a36f53; }
.software-card p { margin: 0 0 22px; font-size: 13px; line-height: 1.75; }
.software-repo { display: block; margin-top: auto; border-top: 1px solid var(--line); padding-top: 13px; font-size: 11px; font-weight: 700; color: #6b7976; overflow-wrap: anywhere; }
.more-software { margin: 24px 0 0; font-size: 13px; color: #6b7775; }
.more-software a { color: var(--ink); font-weight: 700; }

.academic-grid { display: grid; grid-template-columns: 1.2fr .8fr; gap: 10%; }
.academic-block h3 { margin: 0 0 21px; font-family: var(--serif); font-size: 26px; font-weight: 500; letter-spacing: -.025em; }
.academic-block p { font-size: 14px; line-height: 1.85; }
.academic-block .subheading { margin-top: 32px; }
.timeline { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.timeline li { display: grid; grid-template-columns: 130px 1fr; gap: 14px; padding: 20px 0; border-bottom: 1px solid var(--line); }
.timeline li > span { color: #966e58; font-size: 12px; font-weight: 800; }
.timeline strong { color: var(--ink); font-size: 14px; }
.timeline p { margin: 5px 0 0; color: #687a79; font-size: 13px; }

.contact-section { background: var(--ink); color: #d3e0db; padding: 92px 0; }
.contact-inner { display: flex; align-items: end; justify-content: space-between; gap: 50px; }
.contact-section .section-index { color: #e9b18c; }
.contact-section h2 { color: #fff; margin-bottom: 16px; }
.contact-section p:not(.section-index) { max-width: 570px; }
.contact-email { display: inline-block; margin-top: 13px; color: #fff; font-family: var(--serif); font-size: clamp(22px,3vw,32px); letter-spacing: -.025em; border-bottom: 1px solid #a4c3b6; }
.contact-email:hover, .contact-aside a:hover { color: var(--peach-light); }
.contact-email span { font: 18px var(--sans); }
.contact-aside { display: flex; flex-direction: column; gap: 12px; min-width: 150px; padding-bottom: 5px; }
.contact-aside p { margin: 0 0 5px; color: #9dbab5; font-size: 11px; font-weight: 800; text-transform: uppercase; letter-spacing: .14em; }
.contact-aside a { color: #fff; font-size: 13px; font-weight: 700; }
.site-footer { background: var(--ink-deep); color: #9ab0ae; }
.footer-inner { min-height: 70px; display: flex; align-items: center; justify-content: space-between; gap: 18px; font-size: 11px; }
.site-footer a { color: #d9e9df; }

@media (max-width: 1030px) {
  .header-inner { flex-wrap: wrap; gap: 0 22px; padding-block: 12px; }
  .primary-nav { order: 3; justify-content: flex-start; width: 100%; flex: none; gap: 22px; overflow-x: auto; padding-top: 10px; }
  .header-actions { margin-left: auto; }
  .hero-grid { gap: 4%; }
  .software-grid { grid-template-columns: repeat(2,1fr); }
}
@media (max-width: 760px) {
  html { scroll-padding-top: 100px; }
  .container { width: min(calc(100% - 36px), 620px); }
  .header-inner { min-height: 66px; }
  .brand-name { font-size: 15px; }
  .primary-nav { gap: 19px; padding-bottom: 2px; }
  .primary-nav a { font-size: 11px; }
  .hero-grid { grid-template-columns: 1fr; padding-block: 60px 47px; gap: 40px; }
  .hero-copy { padding: 0; }
  h1 { font-size: clamp(43px,9.5vw,65px); margin-top: 20px; }
  .hero-intro { font-size: 16px; }
  .hero-visual { min-height: 290px; box-shadow: 10px 10px 0 #e5e9e1; }
  .hero-portrait-frame { margin: 14px 0 9px; }
  .recognition-inner { grid-template-columns: 1fr; }
  .recognition p { padding: 14px 0; min-height: 52px; border-right: 0; border-bottom: 1px solid #42606a; }
  .recognition p:last-child { border-bottom: 0; }
  .section { padding: 75px 0; }
  .two-col-intro, .academic-grid { grid-template-columns: 1fr; gap: 25px; }
  .section-heading { display: block; }
  .section-lead { margin-top: 20px; }
  .research-grid { grid-template-columns: 1fr; }
  .research-card { min-height: 0; }
  .section-heading-publications .text-link { display: inline-block; margin-top: 21px; }
  .publication { grid-template-columns: 55px 1fr; gap: 13px; }
  .pub-tag { display: none; }
  .software-grid { grid-template-columns: 1fr 1fr; }
  .contact-inner { display: block; }
  .contact-aside { margin-top: 45px; }
  .footer-inner { flex-wrap: wrap; padding-block: 20px; }
}
@media (max-width: 520px) {
  html { scroll-padding-top: 132px; }
  .header-contact { font-size: 11px; }
  .primary-nav { flex-wrap: wrap; gap: 3px 16px; overflow-x: visible; }
  .hero-visual { min-height: 240px; }
  .visual-top, .visual-bottom { font-size: 8px; }
  .hero-portrait-frame { margin: 12px 0 8px; }
  .mini-branch-art { margin-bottom: 11px; }
  .hero-actions { align-items: stretch; }
  .button { width: 100%; }
  .software-grid { grid-template-columns: 1fr; }
  .timeline li { grid-template-columns: 1fr; gap: 4px; }
  .contact-email { font-size: 21px; overflow-wrap: anywhere; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } .button, .software-card { transition: none; } }
