:root {
  --bg: #f4f3ee;
  --surface: #ebeae4;
  --text: #11110f;
  --muted: #67665f;
  --line: #cfcec5;
  --accent: #b04f32;
  --header: rgba(244, 243, 238, 0.92);
  --max: 1440px;
  --pad: clamp(22px, 4vw, 64px);
  --ease: cubic-bezier(.2,.7,.2,1);
}

html[data-theme="dark"] {
  --bg: #11110f;
  --surface: #191916;
  --text: #f1f0ea;
  --muted: #aaa89e;
  --line: #33322e;
  --accent: #d87655;
  --header: rgba(17, 17, 15, 0.91);
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  background: var(--bg);
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: Arial, Helvetica, "Helvetica Neue", sans-serif;
  line-height: 1.45;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

::selection {
  background: var(--accent);
  color: #fff;
}

a {
  color: inherit;
  text-decoration: none;
}

button, a {
  -webkit-tap-highlight-color: transparent;
}

button {
  font: inherit;
}

.skip-link {
  position: fixed;
  left: 16px;
  top: -100px;
  z-index: 100;
  background: var(--text);
  color: var(--bg);
  padding: 10px 14px;
}

.skip-link:focus { top: 16px; }

.section-shell {
  width: min(100%, var(--max));
  margin: 0 auto;
  padding-left: var(--pad);
  padding-right: var(--pad);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--header);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}

.header-inner {
  width: min(100%, var(--max));
  min-height: 72px;
  margin: 0 auto;
  padding: 0 var(--pad);
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 28px;
}

.brand {
  justify-self: start;
  display: inline-flex;
  align-items: center;
  gap: 11px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .045em;
}

.brand-mark {
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  border: 1px solid var(--text);
  font-size: 10px;
  letter-spacing: .04em;
}

.desktop-nav {
  display: flex;
  align-items: center;
  gap: clamp(18px, 2.2vw, 34px);
  font-size: 12px;
}

.desktop-nav a,
.mobile-menu a,
.arrow-link,
.back-top {
  transition: color .2s var(--ease);
}

.desktop-nav a:hover,
.mobile-menu a:hover,
.arrow-link:hover,
.back-top:hover {
  color: var(--accent);
}

.header-actions {
  justify-self: end;
  display: flex;
  align-items: center;
  gap: 12px;
}

.text-button,
.icon-button,
.menu-button {
  border: 0;
  background: transparent;
  color: var(--text);
  cursor: pointer;
}

.text-button {
  padding: 8px 4px;
  font-size: 11px;
  letter-spacing: .04em;
}

.lang-active {
  color: var(--accent);
  font-weight: 700;
}

.icon-button {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
}

.icon-button svg {
  width: 17px;
  height: 17px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.5;
}

.menu-button {
  display: none;
  width: 36px;
  height: 36px;
  padding: 9px;
}

.menu-button span {
  display: block;
  height: 1px;
  background: currentColor;
  margin: 6px 0;
  transition: transform .25s var(--ease);
}

.mobile-menu {
  display: none;
}

.hero {
  position: relative;
  min-height: calc(100vh - 73px);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  border-bottom: 1px solid var(--line);
}

.hero-grid {
  position: relative;
  z-index: 2;
  flex: 1;
  display: grid;
  grid-template-columns: minmax(150px, 1fr) minmax(0, 3fr);
  gap: clamp(28px, 6vw, 120px);
  padding-top: clamp(70px, 10vh, 130px);
  padding-bottom: 70px;
}

.hero-meta {
  padding-top: 8px;
}

.eyebrow,
.hero-location,
.small-label {
  margin: 0;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: .075em;
}

.eyebrow {
  color: var(--accent);
  font-weight: 700;
}

.hero-location {
  color: var(--muted);
  margin-top: 10px;
}

.hero-main {
  max-width: 1060px;
}

.hero h1 {
  margin: 0;
  font-size: clamp(68px, 9.7vw, 154px);
  line-height: .86;
  font-weight: 500;
  letter-spacing: -.072em;
}

.accent-word {
  color: var(--accent);
}

.hero-copy {
  width: min(720px, 86%);
  margin: clamp(38px, 6vh, 66px) 0 0;
  color: var(--muted);
  font-size: clamp(18px, 1.75vw, 25px);
  line-height: 1.36;
  letter-spacing: -.015em;
}

.hero-cta {
  display: flex;
  gap: 26px;
  margin-top: 34px;
}

.arrow-link {
  display: inline-flex;
  align-items: baseline;
  gap: 10px;
  width: fit-content;
  padding-bottom: 3px;
  border-bottom: 1px solid currentColor;
  font-size: 13px;
}

.muted-link { color: var(--muted); }

.hero-foot {
  position: relative;
  z-index: 2;
  display: flex;
  justify-content: space-between;
  padding: 16px 0 22px;
  color: var(--muted);
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: .08em;
}

.contour-field {
  position: absolute;
  z-index: 1;
  left: 16%;
  right: -10%;
  bottom: 4%;
  height: 44%;
  opacity: .16;
  pointer-events: none;
}

.contour-field svg {
  width: 100%;
  height: 100%;
}

.contour-field path {
  fill: none;
  stroke: var(--muted);
  stroke-width: 1;
  vector-effect: non-scaling-stroke;
}

.content-section {
  display: grid;
  grid-template-columns: 70px minmax(160px, 1fr) minmax(0, 3fr);
  gap: clamp(20px, 4vw, 70px);
  padding-top: clamp(70px, 9vw, 130px);
  padding-bottom: clamp(80px, 10vw, 150px);
  border-bottom: 1px solid var(--line);
}

.section-index {
  color: var(--accent);
  font-size: 10px;
  letter-spacing: .08em;
}

.section-heading h2 {
  margin: 11px 0 0;
  font-size: clamp(34px, 4.3vw, 68px);
  font-weight: 500;
  line-height: .98;
  letter-spacing: -.045em;
}

.section-body {
  max-width: 920px;
}

.prose-large p {
  margin: 0;
  font-size: clamp(24px, 3vw, 42px);
  line-height: 1.18;
  letter-spacing: -.032em;
}

.prose-large .secondary-copy {
  margin-top: 46px;
  max-width: 800px;
  color: var(--muted);
  font-size: clamp(16px, 1.55vw, 22px);
  line-height: 1.45;
  letter-spacing: -.012em;
}

.research-list {
  border-top: 1px solid var(--line);
}

.research-item {
  display: grid;
  grid-template-columns: 60px 1fr;
  gap: 18px;
  padding: 28px 0 32px;
  border-bottom: 1px solid var(--line);
}

.research-no {
  color: var(--accent);
  font-size: 11px;
  padding-top: 4px;
}

.research-item h3,
.publication-item h3 {
  margin: 0;
  font-size: clamp(21px, 2.3vw, 34px);
  line-height: 1.1;
  font-weight: 500;
  letter-spacing: -.025em;
}

.research-item p {
  max-width: 650px;
  margin: 12px 0 0;
  color: var(--muted);
  font-size: 15px;
}

.publication-list {
  border-top: 1px solid var(--line);
}

.publication-item {
  display: grid;
  grid-template-columns: 115px 1fr auto;
  gap: 24px;
  align-items: start;
  padding: 30px 0 34px;
  border-bottom: 1px solid var(--line);
}

.pub-meta {
  display: flex;
  flex-direction: column;
  gap: 5px;
  color: var(--muted);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: .065em;
}

.pub-main h3 {
  max-width: 680px;
  font-size: clamp(19px, 1.8vw, 27px);
  line-height: 1.22;
}

.pub-main p {
  margin: 11px 0 0;
  color: var(--muted);
  font-size: 13px;
}

.pub-links {
  font-size: 12px;
}

.disabled-link {
  opacity: .45;
  pointer-events: none;
  cursor: default;
}

.edit-note {
  margin: 22px 0 0;
  color: var(--muted);
  font-size: 12px;
}

.academic-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  border-top: 1px solid var(--line);
}

.academic-block {
  min-height: 150px;
  padding: 26px 28px 30px 0;
  border-bottom: 1px solid var(--line);
}

.academic-block:nth-child(odd) {
  border-right: 1px solid var(--line);
}

.academic-block:nth-child(even) {
  padding-left: 28px;
}

.small-label {
  display: block;
  color: var(--muted);
  margin-bottom: 20px;
}

.academic-block p {
  margin: 0;
  font-size: 18px;
}

.inline-links {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  font-size: 13px;
}

.contact-section {
  background: var(--text);
  color: var(--bg);
  max-width: none;
  width: 100%;
  padding-left: max(var(--pad), calc((100vw - var(--max)) / 2 + var(--pad)));
  padding-right: max(var(--pad), calc((100vw - var(--max)) / 2 + var(--pad)));
}

.contact-section .section-index,
.contact-section .eyebrow {
  color: var(--accent);
}

.contact-section .small-label {
  color: color-mix(in srgb, var(--bg) 62%, transparent);
}

.contact-lead {
  max-width: 780px;
  margin: 0 0 70px;
  font-size: clamp(25px, 3.6vw, 50px);
  line-height: 1.08;
  letter-spacing: -.035em;
}

.contact-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  border-top: 1px solid color-mix(in srgb, var(--bg) 20%, transparent);
  padding-top: 28px;
}

.contact-row > div {
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-size: 14px;
}

.placeholder-text {
  color: color-mix(in srgb, var(--bg) 72%, transparent);
}

.site-footer {
  min-height: 92px;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  color: var(--muted);
  font-size: 11px;
}

.footer-center { justify-self: center; }
.back-top { justify-self: end; }

@media (prefers-reduced-motion: no-preference) {
  .content-section,
  .hero-main,
  .hero-meta {
    animation: reveal .65s var(--ease) both;
  }

  @keyframes reveal {
    from { opacity: 0; transform: translateY(12px); }
    to { opacity: 1; transform: translateY(0); }
  }
}

@media (max-width: 900px) {
  .header-inner {
    min-height: 64px;
    grid-template-columns: 1fr auto;
  }

  .desktop-nav { display: none; }
  .menu-button { display: block; }

  .mobile-menu {
    display: grid;
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    transition: max-height .35s var(--ease), opacity .25s var(--ease);
    border-top: 0 solid var(--line);
  }

  .mobile-menu.open {
    max-height: 320px;
    opacity: 1;
    border-top-width: 1px;
    padding: 8px var(--pad) 18px;
  }

  .mobile-menu a {
    padding: 11px 0;
    font-size: 13px;
  }

  .menu-button[aria-expanded="true"] span:first-child {
    transform: translateY(3.5px) rotate(45deg);
  }

  .menu-button[aria-expanded="true"] span:last-child {
    transform: translateY(-3.5px) rotate(-45deg);
  }

  .hero {
    min-height: calc(100svh - 65px);
  }

  .hero-grid {
    grid-template-columns: 1fr;
    align-content: center;
    gap: 50px;
    padding-top: 68px;
  }

  .hero-meta {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
  }

  .hero-location { margin: 0; }

  .hero h1 {
    font-size: clamp(58px, 15vw, 112px);
  }

  .hero-copy {
    width: min(100%, 680px);
  }

  .contour-field {
    left: 0;
    right: -35%;
    height: 35%;
    bottom: 7%;
  }

  .content-section {
    grid-template-columns: 44px 1fr;
    gap: 18px 22px;
  }

  .section-heading { grid-column: 2; }
  .section-body { grid-column: 2; }

  .publication-item {
    grid-template-columns: 82px 1fr;
  }

  .pub-links {
    grid-column: 2;
  }
}

@media (max-width: 600px) {
  :root { --pad: 18px; }

  .brand-name { display: none; }

  .hero-grid {
    gap: 36px;
    padding-top: 48px;
    padding-bottom: 48px;
  }

  .hero-meta {
    display: block;
  }

  .hero-location { margin-top: 8px; }

  .hero h1 {
    font-size: clamp(52px, 18vw, 84px);
    letter-spacing: -.065em;
  }

  .hero-copy {
    margin-top: 30px;
    font-size: 17px;
  }

  .hero-cta {
    flex-direction: column;
    gap: 16px;
    align-items: flex-start;
  }

  .content-section {
    grid-template-columns: 32px 1fr;
    padding-top: 64px;
    padding-bottom: 78px;
  }

  .academic-grid {
    grid-template-columns: 1fr;
  }

  .academic-block:nth-child(odd) {
    border-right: 0;
  }

  .academic-block:nth-child(even) {
    padding-left: 0;
  }

  .publication-item {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .pub-meta {
    flex-direction: row;
    gap: 12px;
  }

  .pub-links { grid-column: 1; }

  .contact-row {
    grid-template-columns: 1fr;
    gap: 34px;
  }

  .site-footer {
    grid-template-columns: 1fr auto;
    gap: 8px 24px;
    padding-top: 24px;
    padding-bottom: 24px;
  }

  .footer-center {
    justify-self: start;
    grid-row: 2;
  }

  .back-top {
    grid-row: 1 / span 2;
    grid-column: 2;
  }
}

/* v1.1 — academic profile bar and content refinements */
.profile-bar { border-bottom: 1px solid var(--line); }
.profile-bar-inner {
  width: min(100%, var(--max));
  min-height: 36px;
  margin: 0 auto;
  padding: 0 var(--pad);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(14px, 1.7vw, 26px);
  overflow-x: auto;
  scrollbar-width: none;
  white-space: nowrap;
}
.profile-bar-inner::-webkit-scrollbar { display: none; }
.profile-bar a {
  flex: 0 0 auto;
  color: var(--muted);
  font-size: 10px;
  letter-spacing: .045em;
  transition: color .2s var(--ease);
}
.profile-bar a:hover { color: var(--accent); }
.pub-authors { color: var(--text) !important; }
.pub-journal { font-style: italic; }
.pub-links a { transition: color .2s var(--ease); }
.pub-links a:hover, .inline-links a:hover, .contact-row a:hover { color: var(--accent); }
.inline-links a, .contact-row a { transition: color .2s var(--ease); }
.contact-row { margin-top: 0; }
@media (max-width: 900px) {
  .profile-bar-inner { justify-content: flex-start; }
  .hero { min-height: calc(100svh - 101px); }
}

/* About: keep the biographical paragraph readable and subordinate to the section title. */
#about .prose-large > p:first-child {
  max-width: 820px;
  font-size: clamp(18px, 1.65vw, 24px);
  line-height: 1.48;
  letter-spacing: -0.012em;
}
