/* Monochrome identity for the home, publications, and CV pages. */
:root {
  --global-bg-color: #fff;
  --global-text-color: #1d1d1f;
  --global-text-color-light: #6e6e73;
  --global-border-color: #d9d9dc;
  --global-link-color: #1d1d1f;
  --global-link-color-hover: #55555a;
  --global-link-color-visited: #1d1d1f;
  --global-masthead-link-color: #1d1d1f;
  --global-masthead-link-color-hover: #55555a;
  --ink: #1d1d1f;
  --muted: #6e6e73;
  --line: #d9d9dc;
  --soft: #f5f5f7;
  --sans: -apple-system, BlinkMacSystemFont, 'SF Pro Display', 'SF Pro Text', 'Helvetica Neue', Arial, sans-serif;
}

body { color: var(--ink); background: #fff; font-family: var(--sans); -webkit-font-smoothing: antialiased; }
a:focus-visible { outline: 2px solid var(--ink); outline-offset: 4px; }

.masthead {
  background: rgba(255, 255, 255, .94);
  -webkit-backdrop-filter: blur(18px);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid var(--line);
}
.masthead__inner-wrap { max-width: 1240px !important; padding-right: 32px; padding-left: 32px; }
.masthead__menu-item, .greedy-nav { background: transparent; }
.masthead__menu-item--lg { font-weight: 700; letter-spacing: -.035em; }
.masthead__menu-item:not(.masthead__menu-item--lg) a { font-size: .83rem; font-weight: 500; letter-spacing: 0; }
.page__footer { background: #fff; border-top: 1px solid var(--line); }
.page__footer footer { max-width: 1240px; }

.home-shell#main, .research-shell#main {
  box-sizing: border-box;
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 32px;
}
.home-shell *, .research-shell * { box-sizing: border-box; }
.eyebrow {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0 0 22px;
  color: var(--muted);
  font-size: .68rem;
  font-weight: 650;
  letter-spacing: .13em;
  line-height: 1.5;
  text-transform: uppercase;
}
.eyebrow__line { display: inline-block; width: 24px; height: 1px; background: #a1a1a6; }

/* Home */
.home-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr);
  align-items: center;
  gap: clamp(48px, 7vw, 112px);
  min-height: 660px;
  padding: 92px 0 102px;
}
.home-hero__copy { padding-left: clamp(0px, 2vw, 28px); }
.home-hero h1, .research-hero h1 {
  margin: 0;
  color: #111112;
  font-family: var(--sans);
  font-size: clamp(5rem, 8.6vw, 7.4rem);
  font-weight: 700;
  letter-spacing: -.082em;
  line-height: .95;
}
.home-hero h1 em, .research-hero h1 em,
.section-heading h2 em, .home-contact h2 em {
  color: inherit;
  font-family: inherit;
  font-style: normal;
  font-weight: inherit;
  letter-spacing: inherit;
}
.home-hero__role {
  margin: 35px 0 16px;
  color: var(--ink);
  font-size: clamp(1.06rem, 1.6vw, 1.25rem);
  font-weight: 600;
  line-height: 1.45;
}
.home-hero__intro {
  max-width: 520px;
  margin: 0;
  color: var(--muted);
  font-size: .98rem;
  line-height: 1.7;
}
.home-hero__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 16px; margin-top: 34px; }
.action-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 22px;
  min-height: 46px;
  padding: 12px 21px;
  border: 1px solid transparent;
  border-radius: 999px;
  font-size: .79rem;
  font-weight: 600;
  line-height: 1.2;
  text-decoration: none !important;
}
.action-link--primary { color: #fff !important; background: var(--ink); }
.action-link--primary:hover { color: #fff !important; background: #444448; }
.action-link--secondary { color: var(--ink) !important; background: transparent; }
.action-link--secondary:hover { text-decoration: underline !important; text-underline-offset: 4px; }
.home-hero__social { display: flex; flex-wrap: wrap; gap: 22px; margin-top: 36px; }
.home-hero__social a { color: var(--muted); font-size: .74rem; font-weight: 500; text-decoration: none; }
.home-hero__social a:hover { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; }
.home-hero__visual { max-width: 500px; }
.home-hero__image-wrap { aspect-ratio: 4 / 4.55; overflow: hidden; border-radius: 10px; background: var(--soft); }
.home-hero__image-wrap img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: 54% center; filter: grayscale(1); }

/* About, selected work, contact */
.home-section { padding: 90px clamp(0px, 2vw, 28px); border-top: 1px solid var(--line); }
.home-about { display: grid; grid-template-columns: minmax(220px, .72fr) minmax(0, 1.28fr); gap: 8%; }
.section-heading h2, .home-contact h2 {
  margin: 0;
  color: #111112;
  font-family: var(--sans);
  font-size: clamp(3rem, 5vw, 4.55rem);
  font-weight: 700;
  letter-spacing: -.065em;
  line-height: 1.06;
}
.home-about__text { max-width: 700px; color: #424246; font-size: .97rem; line-height: 1.85; }
.home-about__text p { margin: 0 0 1.4em; }
.home-about__text a { color: var(--ink); text-decoration-color: #85858a; text-underline-offset: 3px; }
.section-heading--row { display: flex; align-items: end; justify-content: space-between; gap: 24px; }
.section-heading__link { padding-bottom: 4px; color: var(--ink); font-size: .79rem; font-weight: 600; white-space: nowrap; text-decoration: none; border-bottom: 1px solid var(--ink); }
.section-heading__link:hover { color: var(--muted); border-color: var(--muted); }
.selected-list { margin-top: 46px; border-top: 1px solid var(--line); }
.selected-paper { display: grid; grid-template-columns: 52px 1fr; gap: 22px; padding: 29px 0 32px; border-bottom: 1px solid var(--line); }
.selected-paper__index { padding-top: 3px; color: #99999e; font-size: .79rem; font-variant-numeric: tabular-nums; }
.selected-paper__venue { margin: 0 0 10px; color: var(--muted); font-size: .7rem; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; }
.selected-paper h3 { max-width: 900px; margin: 0; font-family: var(--sans); font-size: clamp(1.25rem, 2.15vw, 1.65rem); font-weight: 650; letter-spacing: -.04em; line-height: 1.35; }
.selected-paper h3 a { color: var(--ink); text-decoration: none; }
.selected-paper h3 a:hover { text-decoration: underline; text-underline-offset: 3px; }
.selected-paper__authors { margin: 11px 0 0; color: var(--muted); font-size: .78rem; line-height: 1.6; }
.selected-paper__links { display: flex; flex-wrap: wrap; gap: 18px; margin-top: 15px; }
.selected-paper__links a { color: var(--ink); font-size: .75rem; font-weight: 600; text-decoration: none; }
.selected-paper__links a:hover { text-decoration: underline; text-underline-offset: 3px; }
.home-contact { margin: 24px 0 78px; padding: 56px clamp(28px, 5vw, 70px); background: var(--soft); border-radius: 12px; }
.home-contact__row { display: flex; align-items: end; justify-content: space-between; gap: 30px; }
.home-contact__row a { padding-bottom: 4px; color: var(--ink); font-size: clamp(.88rem, 1.5vw, 1.1rem); text-decoration: none; border-bottom: 1px solid var(--ink); }
.home-contact__row a:hover { color: var(--muted); border-color: var(--muted); }

/* Publications and CV share a calm page header. */
.research-hero { padding: 92px clamp(0px, 2vw, 28px) 62px; border-bottom: 1px solid var(--line); }
.research-hero h1 { font-size: clamp(4.2rem, 8vw, 7rem); }
.research-hero > p:last-child { max-width: 650px; margin: 26px 0 0; color: var(--muted); font-size: 1rem; line-height: 1.65; }
.research-content { max-width: 1100px; margin: 0 auto; padding: 47px 0 100px; }
.publication-intro { display: flex; justify-content: space-between; align-items: start; gap: 24px; padding-bottom: 24px; }
.publication-intro p { max-width: 720px; margin: 0; color: var(--muted); font-size: .82rem; line-height: 1.65; }
.publication-intro > a { color: var(--ink); font-size: .78rem; font-weight: 600; white-space: nowrap; text-decoration: none; border-bottom: 1px solid var(--ink); }
.pub-group { margin-top: 76px; }
.pub-group__header { display: flex; align-items: baseline; gap: 25px; padding-bottom: 20px; border-bottom: 1px solid var(--line); }
.pub-group__number { color: #99999e; font-size: .83rem; font-variant-numeric: tabular-nums; }
.pub-group__header h2 { margin: 0; color: var(--ink); font-family: var(--sans); font-size: clamp(1.8rem, 3.5vw, 2.7rem); font-weight: 680; letter-spacing: -.05em; }
.publication-role, .cv-paper__lead { display: inline-block; margin-bottom: 7px; color: var(--muted); font-size: .63rem; font-weight: 600; letter-spacing: .09em; text-transform: uppercase; }
.pub-group__subhead { margin: 30px 0 12px; color: var(--muted); font-size: .72rem; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; }
.research-content--publications .list__item { float: none; width: 100%; margin: 0; padding: 0; }
.research-content--publications .archive__item { padding: 23px 0 27px; border-bottom: 1px solid var(--line); }
.research-content--publications .archive__item-title { max-width: 950px; margin: 0 0 8px; font-family: var(--sans); font-size: clamp(1.04rem, 1.65vw, 1.28rem); font-weight: 650; letter-spacing: -.025em; line-height: 1.4; }
.research-content--publications .archive__item-title a:first-child { color: var(--ink); text-decoration: none; }
.research-content--publications .archive__item-title a:first-child:hover { text-decoration: underline; text-underline-offset: 3px; }
.research-content--publications .archive__item-title a[rel="permalink"] { color: var(--muted); font-size: .62rem; text-decoration: none; }
.research-content--publications .archive__item-title a[rel="permalink"]:first-child { color: var(--ink); font-size: inherit; }
.research-content--publications .publication-venue { margin: 0 0 6px; color: #48484c; font-size: .76rem; font-weight: 600; }
.research-content--publications .publication-authors { margin: 0; color: var(--muted); font-size: .77rem; line-height: 1.65; }
.research-content--publications .publication-authors p { margin: 0; }
.publication-links { display: flex; flex-wrap: wrap; gap: 16px; margin-top: 14px; }
.publication-links a { color: var(--ink); font-size: .72rem; font-weight: 600; text-decoration: none; }
.publication-links a:hover { text-decoration: underline; text-underline-offset: 3px; }

/* CV */
.research-content--cv { color: #424246; font-size: .88rem; line-height: 1.7; }
.cv-topline { display: flex; justify-content: space-between; align-items: center; gap: 24px; padding: 8px 0 36px; }
.cv-topline__label { margin: 0 0 5px; color: var(--muted); font-size: .69rem; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; }
.cv-topline__summary { margin: 0; color: var(--muted); font-size: .85rem; }
.cv-download { display: inline-flex; align-items: center; justify-content: space-between; gap: 22px; min-width: 160px; padding: 12px 18px; color: #fff; background: var(--ink); border-radius: 999px; font-size: .76rem; font-weight: 600; text-decoration: none; white-space: nowrap; }
.cv-download:hover { color: #fff; background: #444448; }
.cv-index { position: sticky; top: 70px; z-index: 8; display: flex; flex-wrap: wrap; gap: 26px; padding: 15px 0; background: rgba(255, 255, 255, .96); -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.cv-index a { color: var(--muted); font-size: .72rem; font-weight: 600; text-decoration: none; }
.cv-index a:hover { color: var(--ink); }
.cv-section { display: grid; grid-template-columns: minmax(170px, .28fr) minmax(0, .72fr); gap: 6%; padding: 58px 0 64px; border-bottom: 1px solid var(--line); scroll-margin-top: 125px; }
.cv-section__heading > span { color: var(--muted); font-size: .66rem; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; }
.cv-section__heading h2 { margin: 12px 0 0; color: var(--ink); font-family: var(--sans); font-size: clamp(1.85rem, 2.7vw, 2.45rem); font-weight: 680; letter-spacing: -.05em; line-height: 1.15; }
.cv-section__body { min-width: 0; }
.cv-entry { display: grid; grid-template-columns: 145px minmax(0, 1fr); gap: 22px; padding: 0 0 25px; margin: 0 0 25px; border-bottom: 1px solid #e7e7ea; }
.cv-entry:last-child { margin-bottom: 0; padding-bottom: 0; border-bottom: 0; }
.cv-entry__date { padding-top: 3px; color: var(--muted); font-size: .76rem; white-space: nowrap; }
.cv-entry__date small { display: block; color: var(--muted); font-size: .65rem; }
.cv-entry__content h3 { margin: 0 0 4px; color: var(--ink); font-family: var(--sans); font-size: 1.03rem; font-weight: 650; letter-spacing: -.025em; }
.cv-entry__place { margin: 0 0 7px; color: #454549; font-size: .78rem; font-weight: 600; }
.cv-entry__content > p:last-child { margin: 0; color: var(--muted); font-size: .76rem; line-height: 1.65; }
.cv-section__note { margin: 0 0 28px; color: var(--muted); font-size: .76rem; }
.cv-section__note a { color: var(--ink); text-underline-offset: 3px; }
.cv-paper-group { margin: 42px 0 0; padding-top: 20px; color: var(--ink); font-family: var(--sans); font-size: 1.14rem; font-weight: 650; letter-spacing: -.03em; border-top: 1px solid var(--line); }
.cv-paper-group:first-of-type { margin-top: 0; padding-top: 0; border-top: 0; }
.cv-paper-subgroup { margin: 24px 0 7px; color: var(--muted); font-size: .66rem; font-weight: 600; letter-spacing: .09em; text-transform: uppercase; }
.cv-paper { display: grid; grid-template-columns: 48px minmax(0, 1fr); gap: 14px; padding: 17px 0; border-bottom: 1px solid #e7e7ea; }
.cv-paper__year { padding-top: 3px; color: var(--muted); font-size: .75rem; }
.cv-paper__main h4 { margin: 0 0 5px; font-family: var(--sans); font-size: .86rem; font-weight: 650; letter-spacing: -.01em; line-height: 1.45; }
.cv-paper__main h4 a { color: var(--ink); text-decoration: none; }
.cv-paper__main h4 a:hover { text-decoration: underline; text-underline-offset: 3px; }
.cv-paper__authors, .cv-paper__venue { margin: 0 0 4px; color: var(--muted); font-size: .71rem; line-height: 1.55; }
.cv-paper__venue { color: #454549; font-weight: 600; }
.cv-paper__status { margin-left: 6px; color: var(--muted); font-size: .61rem; font-weight: 600; text-transform: uppercase; }
.cv-paper__links { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 5px; }
.cv-paper__links a { color: var(--ink); font-size: .66rem; font-weight: 600; text-decoration: none; }
.cv-paper__links a:hover { text-decoration: underline; text-underline-offset: 3px; }
.cv-skill-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; }
.cv-skill, .cv-service { padding: 18px 0; border-top: 1px solid var(--line); }
.cv-skill h3, .cv-service h3 { margin: 0 0 10px; color: var(--ink); font-family: var(--sans); font-size: .8rem; font-weight: 650; }
.cv-skill p, .cv-service p { margin: 0; color: var(--muted); font-size: .75rem; line-height: 1.7; }
.cv-awards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 24px; margin: 0; padding: 0; list-style: none; }
.cv-awards li { display: flex; gap: 16px; padding: 13px 0; border-bottom: 1px solid #e7e7ea; font-size: .75rem; line-height: 1.45; }
.cv-awards time { flex: 0 0 62px; color: var(--muted); white-space: nowrap; }
.cv-awards small { display: block; color: var(--muted); font-size: .65rem; }
.cv-service-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px; }

@media (max-width: 850px) {
  .home-hero { min-height: auto; grid-template-columns: 1fr; gap: 48px; padding: 74px 0 86px; }
  .home-hero__copy { padding-left: 0; }
  .home-hero__visual { width: min(100%, 520px); margin: 0 auto; }
  .home-about { grid-template-columns: 1fr; gap: 30px; }
  .home-section { padding: 70px 0; }
  .cv-section { grid-template-columns: 1fr; gap: 27px; }
}
@media (max-width: 580px) {
  .masthead__inner-wrap { padding-right: 18px; padding-left: 18px; }
  .home-shell#main, .research-shell#main { padding: 0 20px; }
  .home-hero { padding: 58px 0 70px; gap: 42px; }
  .home-hero h1 { font-size: clamp(4.55rem, 17vw, 6rem); }
  .home-hero__role { margin-top: 28px; }
  .home-hero__actions { gap: 8px; }
  .home-hero__social { gap: 18px; margin-top: 28px; }
  .section-heading--row { align-items: start; flex-direction: column; }
  .selected-list { margin-top: 30px; }
  .selected-paper { grid-template-columns: 31px 1fr; gap: 11px; padding: 23px 0; }
  .home-contact { margin: 0 0 55px; padding: 36px 26px; }
  .home-contact__row { align-items: start; flex-direction: column; gap: 24px; }
  .research-hero { padding: 65px 0 47px; }
  .research-hero h1 { font-size: clamp(3.25rem, 14vw, 4.35rem); }
  .research-content { padding-top: 38px; }
  .publication-intro { flex-direction: column; }
  .pub-group { margin-top: 56px; }
  .pub-group__header { gap: 14px; }
  .cv-topline { align-items: start; flex-direction: column; }
  .cv-index { gap: 10px 18px; flex-wrap: wrap; }
  .cv-section { padding: 44px 0 50px; }
  .cv-entry { grid-template-columns: 1fr; gap: 6px; }
  .cv-entry__date small { display: inline; }
  .cv-skill-grid, .cv-awards, .cv-service-grid { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}

/* A vivid hero and restrained color cues on the monochrome foundation. */
:root {
  --global-link-color: #0066cc;
  --global-link-color-hover: #004f9e;
  --global-link-color-visited: #0066cc;
  --accent: #0066cc;
}
.home-hero {
  margin: 28px 0 0;
  padding: 78px clamp(40px, 5vw, 76px);
  min-height: 625px;
  color: #fff;
  background: radial-gradient(circle at 85% 14%, rgba(47, 112, 219, .23), transparent 37%), #111114;
  border-radius: 20px;
}
.home-hero__copy { padding-left: 0; }
.home-hero .eyebrow { color: #9ac8ff; }
.home-hero .eyebrow__line { background: #9ac8ff; }
.home-hero h1 { color: #fff; }
.home-hero h1 em { color: #84bcff; }
.home-hero__role { color: #fff; }
.home-hero__intro { color: #c9c9ce; }
.home-hero .action-link--primary { color: #111114 !important; background: #fff; }
.home-hero .action-link--primary:hover { color: #111114 !important; background: #e8e8ed; }
.home-hero .action-link--secondary { color: #9ac8ff !important; }
.home-hero__social a { color: #c9c9ce; }
.home-hero__social a:hover { color: #fff; }
.home-hero__visual { width: 100%; }
.home-hero__image-wrap { border-radius: 13px; background: #28282d; }
.home-hero__image-wrap img { filter: none; }
.section-heading h2 em, .home-contact h2 em, .research-hero h1 em { color: var(--accent); }
.home-about__text a, .section-heading__link, .selected-paper__links a,
.publication-intro > a, .publication-links a, .cv-section__note a,
.cv-paper__links a { color: var(--accent); }
.section-heading__link, .publication-intro > a { border-color: var(--accent); }
.section-heading__link:hover { color: #004f9e; border-color: #004f9e; }
.selected-paper__index, .pub-group__number { color: var(--accent); }
.selected-paper__venue, .research-content--publications .publication-venue { color: #4c4c54; }
.home-contact { background: #f2f7ff; }
.home-contact .eyebrow { color: var(--accent); }
.home-contact__row a { color: var(--accent); border-color: var(--accent); }
.home-contact__row a:hover { color: #004f9e; border-color: #004f9e; }
.research-hero { background: linear-gradient(115deg, #f5f7fa 0%, #fff 67%); border-radius: 0 0 18px 18px; }
.research-hero .eyebrow { color: var(--accent); }
.publication-role, .cv-paper__lead { color: var(--accent); }
.cv-download { background: var(--accent); }
.cv-download:hover { background: #004f9e; }
.cv-index a:hover, .cv-entry__place, .cv-skill h3, .cv-service h3 { color: var(--accent); }

@media (max-width: 850px) {
  .home-hero { min-height: 0; gap: 48px; padding: 64px 46px; }
}
@media (max-width: 580px) {
  .home-hero { margin-top: 14px; gap: 38px; padding: 46px 27px 30px; border-radius: 16px; }
  .home-hero h1 { font-size: clamp(4rem, 14.5vw, 5.4rem); }
  .home-hero__image-wrap { aspect-ratio: 4 / 4.05; }
  .home-hero__actions { gap: 4px; }
  .home-hero .action-link--secondary { padding-left: 16px; }
  .research-hero { border-radius: 0 0 12px 12px; }
}
