:root {
  --ink: #101d34;
  --blue: #14539e;
  --teal: #0f827e;
  --pale: #eff6f3;
  --paper: #fbfcfa;
  --sand: #e9dbc5;
  --line: #cfd9d7;
  --muted: #52636c;
  --mono: "DM Mono", ui-monospace, monospace;
  --sans: "DM Sans", Arial, sans-serif;
  --serif: "Playfair Display", Georgia, serif;
  color-scheme: light;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 92px; }
body { margin: 0; color: var(--ink); background: var(--paper); font-family: var(--sans); font-size: 16px; line-height: 1.55; }
a { color: inherit; text-decoration: none; }
button { font: inherit; }
.shell { width: min(1240px, calc(100% - 64px)); margin: 0 auto; }
.skip-link { position: fixed; top: 10px; left: 10px; z-index: 100; padding: 8px 12px; background: var(--paper); transform: translateY(-160%); }
.skip-link:focus { transform: translateY(0); }

.site-header { position: fixed; z-index: 20; inset: 0 0 auto; border-bottom: 1px solid transparent; transition: background .25s ease, border-color .25s ease; }
.site-header.is-scrolled { background: rgba(251,252,250,.94); border-color: var(--line); backdrop-filter: blur(16px); }
.nav-shell { height: 76px; display: flex; align-items: center; justify-content: space-between; }
.wordmark { display: inline-flex; align-items: center; gap: 10px; font-size: 14px; font-weight: 700; letter-spacing: 0; }
.wordmark-mark { display: grid; place-items: center; width: 30px; height: 30px; color: var(--paper); background: var(--ink); font-family: var(--mono); font-size: 11px; }
.desktop-nav { display: flex; align-items: center; gap: 26px; font-family: var(--mono); font-size: 11px; text-transform: uppercase; }
.desktop-nav a { padding: 5px 0; border-bottom: 1px solid transparent; color: var(--muted); }
.desktop-nav a:hover, .desktop-nav a.is-active { color: var(--ink); border-color: var(--blue); }
.icon-button { display: none; border: 0; padding: 8px; color: var(--ink); background: transparent; cursor: pointer; }
.icon-button svg { display: block; width: 21px; height: 21px; }
.mobile-nav { display: none; }

.hero { position: relative; min-height: 640px; padding: 110px 0 45px; overflow: hidden; background: var(--pale); }
.hero-architecture { position: absolute; inset: 0; background-image: url("../assets/img/portrait-dsc05482.jpg"); background-position: center; background-size: cover; opacity: .11; filter: grayscale(.15) saturate(.7); }
.hero-architecture::after, .hero::before { content: none; }
.hero-grid { position: relative; display: grid; grid-template-columns: 1.1fr .9fr; gap: 76px; align-items: center; min-height: 485px; }
.hero-copy { padding-top: 20px; max-width: 640px; }
.eyebrow { display: flex; align-items: center; gap: 9px; margin: 0 0 18px; color: var(--teal); font-family: var(--mono); font-size: 11px; font-weight: 500; letter-spacing: .08em; line-height: 1.4; text-transform: uppercase; }
.eyebrow > span:first-child { display: inline-block; width: 25px; height: 1px; background: currentColor; }
h1, h2, p { margin-top: 0; }
h1 { max-width: 630px; margin-bottom: 22px; font-size: clamp(62px, 7vw, 108px); font-weight: 700; letter-spacing: 0; line-height: .95; }
h1 em { color: inherit; font-family: inherit; font-style: normal; font-weight: inherit; }
h2 em, .footer-signoff em { color: var(--blue); font-family: var(--serif); font-weight: 600; }
.hero-role { max-width: 560px; margin-bottom: 14px; color: var(--ink); font-size: 20px; font-weight: 600; line-height: 1.35; }
.hero-summary { max-width: 500px; margin-bottom: 30px; color: var(--muted); font-size: 17px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.contact-link { display: inline-flex; align-items: center; gap: 8px; min-height: 40px; padding: 8px 12px; border: 1px solid var(--ink); font-family: var(--mono); font-size: 11px; transition: color .2s ease, background .2s ease; }
.contact-link:hover { color: var(--paper); background: var(--ink); }
.contact-link svg { width: 15px; height: 15px; }
.contact-link.is-primary { border-color: var(--blue); color: var(--paper); background: var(--blue); }
.contact-link.is-primary:hover { background: var(--teal); border-color: var(--teal); }
.hero-details { display: grid; grid-template-columns: 1.35fr 1fr; gap: 17px 28px; max-width: 590px; margin: 38px 0 0; padding-top: 18px; border-top: 1px solid rgba(16,29,52,.2); }
.hero-details div { display: grid; gap: 3px; }
.hero-details dt { color: var(--muted); font-family: var(--mono); font-size: 10px; text-transform: uppercase; }
.hero-details dd { margin: 0; font-size: 12px; font-weight: 600; line-height: 1.35; }
.hero-visual { position: relative; justify-self: end; width: min(100%, 255px); }
.portrait-frame { position: relative; width: 100%; aspect-ratio: 4 / 5; background: var(--paper); }
.portrait-frame img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: center; }

.section-band { padding: 132px 0; }
.overview { padding-top: 60px; background: var(--paper); }
.overview .section-heading { opacity: 1; transform: none; }
.section-intro h2, .section-heading h2 { margin-bottom: 22px; font-size: clamp(37px, 4vw, 58px); line-height: 1.08; letter-spacing: 0; }
.section-rail { max-width: 285px; padding-left: 15px; border-left: 2px solid var(--teal); color: var(--muted); font-size: 15px; }
.markdown-body { color: var(--muted); font-size: 16px; }
.markdown-body > :first-child { margin-top: 0; }
.markdown-body h3 { margin: 36px 0 13px; color: var(--ink); font-size: 20px; line-height: 1.3; }
.markdown-body h4 { margin: 22px 0 8px; color: var(--ink); font-family: var(--mono); font-size: 11px; letter-spacing: .08em; text-transform: uppercase; }
.markdown-body p { margin: 0 0 17px; }
.markdown-body strong { color: var(--ink); font-weight: 700; }
.markdown-body a { color: var(--blue); border-bottom: 1px solid currentColor; }
.markdown-body code { padding: 2px 5px; background: var(--pale); color: var(--ink); font-family: var(--mono); font-size: .87em; }
.markdown-body ul { margin: 0; padding: 0; list-style: none; }
.markdown-body li { position: relative; padding-left: 18px; margin: 0 0 11px; }
.markdown-body li::before { content: ""; position: absolute; left: 0; top: .62em; width: 6px; height: 6px; border: 1px solid var(--teal); }

.research-strip { padding: 47px 0 51px; color: var(--ink); background: #f3f7f5; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.strip-label { margin-bottom: 18px; color: var(--muted); font-family: var(--mono); font-size: 10px; letter-spacing: .08em; text-transform: uppercase; }
.research-areas { display: flex; flex-wrap: wrap; gap: 12px; }
.research-area { padding: 13px 16px; border: 1px solid #9db9d7; color: var(--ink); background: #e1ebf7; font-family: var(--mono); font-size: 12px; transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease; }
.research-area:nth-child(2) { border-color: #8ebdb4; background: #dceee9; }
.research-area:nth-child(3) { border-color: #d3b984; background: #f3ead8; }
.research-area:nth-child(4) { border-color: #c8a4a7; background: #f1e3e4; }
.research-area:hover { transform: translateY(-3px); border-color: var(--blue); box-shadow: 0 5px 0 rgba(20,83,158,.12); }

.publications { background: #e7efed; }
.section-heading { display: flex; justify-content: space-between; align-items: end; gap: 60px; margin-bottom: 54px; }
.section-heading h2 { margin-bottom: 0; }
.section-heading .section-rail { margin: 0; }
.profile-content { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); column-gap: 90px; align-items: start; }
.profile-content > p:first-child { grid-column: 1; grid-row: 1 / span 5; max-width: 620px; font-size: 18px; line-height: 1.7; }
.profile-content > h3, .profile-content > p:not(:first-child) { grid-column: 2; }
.profile-content > h3 { margin-top: 0; }
.publication-list { display: grid; grid-template-columns: 1fr; gap: 1px; border: 1px solid var(--line); background: var(--line); }
.publication-list > ul { display: contents; }
.publication-list li { position: relative; display: grid; grid-template-columns: 48px minmax(0, 1fr); column-gap: 22px; min-height: 0; padding: 27px 30px 25px; overflow: hidden; background: var(--paper); list-style: none; transition: background .25s ease, color .25s ease; }
.publication-list li::before { content: attr(data-index); grid-column: 1; grid-row: 1 / span 2; display: block; margin-top: 4px; color: var(--teal); font-family: var(--mono); font-size: 10px; letter-spacing: .08em; }
.publication-list li:hover { color: var(--ink); background: #d9eae6; box-shadow: inset 4px 0 0 var(--teal); }
.publication-list li:hover strong, .publication-list li:hover em { color: var(--blue); }
.publication-list li > p { grid-column: 2; width: 100%; min-width: 0; margin: 0; color: var(--muted); font-family: var(--mono); font-size: 12px; line-height: 1.6; }
.publication-list li > p:first-of-type { margin-bottom: 11px; color: var(--ink); font-family: var(--sans); }
.publication-list li > p:first-of-type strong { display: inline; color: var(--ink); font-size: 19px; line-height: 1.35; }
.publication-list li > p:not(:first-of-type) strong { display: inline; color: var(--ink); font-size: inherit; font-weight: 700; }
.publication-list em { color: var(--blue); font-style: normal; }
.publication-list li:hover p { color: #334b55; }

.experience { background: var(--paper); }
.experience-list { border-top: 1px solid var(--line); }
.experience-entry { padding: 31px 0 27px; border-bottom: 1px solid var(--line); }
.experience-entry h3 { margin: 0 0 13px; font-size: 23px; }
.experience-entry h4 { margin-top: 20px; }
.experience-entry p { max-width: 960px; }
.experience-entry ul { display: grid; grid-template-columns: 1fr; gap: 9px; }
.experience-entry li { margin: 0; font-size: 14px; }

.recognition { color: var(--paper); background: var(--blue); }
.recognition .eyebrow { color: #bae6df; }
.recognition h2 em { color: var(--sand); }
.recognition .section-rail { color: #dce9ee; border-color: #bae6df; }
.recognition-list { color: #dce9ee; font-size: 17px; }
.recognition-list ul { border-top: 1px solid rgba(255,255,255,.35); counter-reset: recognition; }
.recognition-list li { display: grid; grid-template-columns: 48px 1fr; gap: 18px; min-height: 70px; padding: 18px 0; border-bottom: 1px solid rgba(255,255,255,.35); counter-increment: recognition; }
.recognition-list li::before { content: counter(recognition, decimal-leading-zero); position: static; width: auto; height: auto; border: 0; color: #bae6df; font-family: var(--mono); font-size: 11px; }
.recognition-list strong { color: var(--paper); }

.site-footer { padding: 57px 0; background: var(--ink); color: var(--paper); }
.footer-inner { display: flex; justify-content: space-between; gap: 40px; align-items: end; }
.footer-signoff { margin: 0; font-size: clamp(24px, 2.5vw, 36px); font-weight: 600; line-height: 1.15; }
.footer-signoff em { color: #8ccdc1; }
.footer-email { display: block; margin-bottom: 13px; font-family: var(--mono); font-size: 12px; border-bottom: 1px solid #8ccdc1; }
.footer-meta { margin: 0; color: #aebdcc; font-family: var(--mono); font-size: 10px; }

.reveal { opacity: 0; transform: translateY(18px); transition: opacity .65s ease, transform .65s ease; }
.reveal.is-visible { opacity: 1; transform: translateY(0); }

@media (max-width: 900px) {
  .shell { width: min(100% - 44px, 680px); }
  .desktop-nav { display: none; }
  .icon-button { display: block; }
  .mobile-nav { padding: 3px calc((100% - min(100% - 44px, 680px)) / 2) 17px; background: rgba(251,252,250,.98); border-bottom: 1px solid var(--line); }
  .mobile-nav:not([hidden]) { display: flex; flex-wrap: wrap; gap: 8px 17px; }
  .mobile-nav a { padding: 7px 0; font-family: var(--mono); font-size: 11px; text-transform: uppercase; }
  .hero { min-height: auto; padding: 132px 0 65px; }
  .hero-grid { grid-template-columns: 1fr; gap: 58px; min-height: 0; }
  .hero-copy { padding: 0; }
  .hero-visual { justify-self: center; width: min(65%, 250px); }
  .section-heading { align-items: start; flex-direction: column; gap: 20px; }
  .section-heading .section-rail { max-width: 420px; }
  .profile-content { grid-template-columns: 1fr; }
  .profile-content > * { grid-column: 1 !important; grid-row: auto !important; }
  .profile-content > h3 { margin-top: 32px; }
  .section-band { padding: 90px 0; }
}

@media (max-width: 620px) {
  .shell { width: calc(100% - 36px); }
  .nav-shell { height: 66px; }
  .wordmark-name { font-size: 13px; }
  .hero { min-height: 0; padding: 82px 0 24px; }
  .hero-grid { gap: 24px; }
  .hero-architecture { left: 0; height: 100%; opacity: .09; }
  h1 { font-size: 61px; }
  .hero-role { font-size: 18px; }
  .hero-summary { font-size: 16px; }
  .hero-details { grid-template-columns: 1fr 1fr; gap: 13px 20px; margin-top: 30px; }
  .hero-details dd { font-size: 11px; }
  .hero-visual { width: min(58%, 220px); }
  .portrait-frame { aspect-ratio: 4 / 5; }
  .portrait-frame img { object-position: center; }
  .section-band { padding: 72px 0; }
  .overview { padding-top: 18px; }
  .section-intro h2, .section-heading h2 { font-size: 39px; }
  .publication-list li { grid-template-columns: 30px minmax(0, 1fr); column-gap: 10px; padding: 23px 18px; }
  .publication-list li > p:first-of-type strong { font-size: 17px; }
  .experience-entry ul { grid-template-columns: 1fr; }
  .recognition-list li { grid-template-columns: 35px 1fr; gap: 10px; }
  .footer-inner { display: grid; gap: 33px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
}
