:root {
  --ink: #17191d;
  --muted: #6c717a;
  --line: #e4e5e8;
  --paper: #ffffff;
  --wash: #f7f7f5;
  --accent: #264d73;
  --accent-soft: #eaf1f7;
  --max: 1120px;
  --reading: 760px;
  --radius: 14px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: Arial, Helvetica, sans-serif;
  font-size: 17px;
  line-height: 1.65;
  letter-spacing: -0.006em;
}
body.is-preload * { transition: none !important; }
a { color: var(--accent); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: #0d2e4b; }
strong { font-weight: 650; }

#nav {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(255,255,255,.92);
  border-bottom: 1px solid rgba(228,229,232,.9);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}
#nav ul.container {
  max-width: var(--max);
  min-height: 66px;
  margin: 0 auto;
  padding: 0 28px;
  display: flex;
  align-items: center;
  gap: 8px;
  list-style: none;
}
#nav li { margin: 0; padding: 0; }
#nav li.site-name { margin-right: auto; }
#nav li.site-name a {
  color: var(--ink);
  padding-left: 0;
  padding-right: 22px;
  font-weight: 700;
  letter-spacing: -.025em;
  border: 0;
  background: transparent;
}
#nav a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 10px 16px;
  color: #4b5058;
  font-size: .88rem;
  line-height: 1;
  text-decoration: none;
  border: 1px solid transparent;
  border-radius: 999px;
}
#nav a:hover { color: var(--ink); background: var(--wash); border-color: var(--line); }
#nav a[aria-current="page"] { color: var(--ink); background: var(--paper); border-color: #bfc3c9; }

.wrapper { padding: 92px 28px; border: 0; box-shadow: none; }
.wrapper.style1, .wrapper.style2, .wrapper.style4 { background: var(--paper); color: var(--ink); }
.wrapper:nth-of-type(even):not(#top):not(#contact):not(#bottom) { background: var(--wash); }
.container { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0; }
.container.medium { max-width: 860px; }
.row { display: grid; grid-template-columns: minmax(230px, .72fr) minmax(0, 1.55fr); gap: 72px; align-items: center; }
.row > * { width: auto !important; max-width: none !important; padding: 0 !important; }

header { margin-bottom: 42px; text-align: left; }
header h1, h1, h2, h3, h4 { color: var(--ink); font-family: inherit; letter-spacing: -.035em; }
h1 { margin: 0 0 24px; font-size: clamp(2.55rem, 5vw, 5rem); line-height: 1.02; font-weight: 720; }
h2 { margin: 0 0 15px; font-size: clamp(2rem, 3.5vw, 3.25rem); line-height: 1.08; font-weight: 700; }
h3 { margin: 0 0 12px; font-size: 1.36rem; line-height: 1.28; font-weight: 680; }
h4 { font-size: .78rem; line-height: 1.3; font-weight: 720; letter-spacing: .085em; text-transform: uppercase; color: var(--muted); }
p { margin: 0 0 1.15rem; }

.eyebrow {
  margin: 0 0 16px;
  color: var(--accent);
  font-size: .74rem;
  line-height: 1.2;
  font-weight: 760;
  letter-spacing: .13em;
  text-transform: uppercase;
}
.lead { max-width: 760px; font-size: clamp(1.15rem, 1.7vw, 1.42rem); line-height: 1.55; color: #33373d; }
.section-intro { max-width: var(--reading); margin: 0 0 54px; text-align: left; }
.section-intro p:last-child { color: var(--muted); font-size: 1.08rem; }
.page-header { max-width: var(--reading); padding: 26px 0 34px; }
.page-header h1 { font-size: clamp(2.75rem, 6vw, 5.4rem); }
.page-header p:last-child { color: var(--muted); font-size: 1.12rem; }

#top { min-height: calc(100vh - 66px); display: flex; align-items: center; padding-top: 72px; padding-bottom: 72px; }
#top .image.fit { display: block; max-width: 330px; margin: 0 auto; }
#top .image.fit img {
  display: block;
  width: 100%;
  aspect-ratio: 4/5;
  object-fit: cover;
  border-radius: 5px;
  filter: saturate(.88) contrast(1.02);
  box-shadow: 0 24px 60px rgba(20,25,30,.14);
}
.research-question {
  max-width: 760px;
  margin: 28px 0 26px;
  padding: 0 0 0 22px;
  border: 0;
  border-left: 3px solid var(--accent);
  background: transparent;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.25rem;
  line-height: 1.55;
  letter-spacing: 0;
}
.research-question strong { font-family: Arial, Helvetica, sans-serif; font-size: .75rem; letter-spacing: .1em; text-transform: uppercase; }
.button-row { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 28px; }
.button, input[type="submit"], input[type="button"] {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 18px;
  border: 1px solid var(--ink);
  border-radius: 999px;
  background: var(--ink);
  color: #fff !important;
  box-shadow: none;
  font-size: .86rem;
  font-weight: 650;
  line-height: 1;
  text-decoration: none;
  text-shadow: none;
}
.button:hover { background: var(--accent); border-color: var(--accent); }
.button.alt { background: transparent; color: var(--ink) !important; border-color: #cfd2d6; }
.button.alt:hover { background: var(--wash); border-color: #999fa7; }
.profile-links { display: flex; flex-wrap: wrap; gap: 18px; margin-top: 24px; font-size: .91rem; }
.profile-links a { margin: 0; }

.axis-grid { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 0; margin: 0; border-top: 1px solid var(--line); }
.axis-card {
  position: relative;
  height: 100%;
  padding: 34px 32px 30px 0;
  border: 0;
  border-bottom: 1px solid var(--line);
  border-radius: 0;
  background: transparent;
  text-align: left;
}
.axis-card + .axis-card { padding-left: 32px; border-left: 1px solid var(--line); }
.axis-card h3 { min-height: 3.4em; }
.axis-card h4 { margin: 25px 0 7px; }
.axis-card p { color: #41464d; font-size: .96rem; }
.status-label {
  display: inline-block;
  margin-bottom: 18px;
  padding: 0;
  border: 0;
  color: var(--accent);
  font-size: .72rem;
  font-weight: 760;
  letter-spacing: .1em;
  text-transform: uppercase;
}
.axis-card[style] { margin-top: 45px !important; padding: 35px 38px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--paper); }
.paper-links { margin-top: 16px; }
.paper-links a { display: inline-block; margin: 0 0 7px; font-size: .88rem; font-weight: 620; }

.project-grid, .contact-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 18px; margin-top: 0; }
.project-card, .contact-card {
  min-height: 220px;
  padding: 30px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper);
  text-align: left;
  transition: transform .2s ease, box-shadow .2s ease;
}
.project-card:hover, .contact-card:hover { transform: translateY(-3px); box-shadow: 0 15px 35px rgba(25,30,35,.07); }
.project-card p, .contact-card p { color: var(--muted); }

#selected-publications .container { max-width: 1040px; }
#selected-publications > .container > h3 { margin: 78px 0 20px; font-size: 1.1rem; color: var(--muted); letter-spacing: -.01em; }
.publication-grid { display: block; margin: 0; }
.publication-card {
  display: grid;
  grid-template-columns: minmax(250px, 34%) minmax(0, 1fr);
  grid-template-areas:
    "visual meta"
    "visual title"
    "visual summary"
    "visual links";
  gap: 0 34px;
  min-height: 235px;
  padding: 28px 0;
  border: 0;
  border-top: 1px solid var(--line);
  border-radius: 0;
  background: transparent;
  text-align: left;
}
.publication-card:last-child { border-bottom: 1px solid var(--line); }
.publication-card .illustration-placeholder { grid-area: visual; }
.publication-card .meta { grid-area: meta; }
.publication-card h3 { grid-area: title; }
.publication-card > p:nth-of-type(2) { grid-area: summary; }
.publication-card > p:last-child { grid-area: links; margin-bottom: 0; }
.illustration-placeholder {
  position: relative;
  min-height: 180px;
  overflow: hidden;
  display: flex;
  align-items: flex-end;
  justify-content: flex-start;
  margin: 0;
  padding: 18px;
  border: 0;
  border-radius: 8px;
  background:
    radial-gradient(circle at 22% 35%, rgba(255,255,255,.85) 0 4%, transparent 5%),
    radial-gradient(circle at 72% 68%, rgba(255,255,255,.72) 0 8%, transparent 9%),
    linear-gradient(135deg, #dbe8f1, #7fa0bc 58%, #335b7e);
  color: rgba(255,255,255,.94);
  font-size: .76rem;
  line-height: 1.35;
  font-weight: 620;
  text-align: left;
}
.publication-card:nth-child(even) .illustration-placeholder {
  background:
    radial-gradient(circle at 78% 28%, rgba(255,255,255,.86) 0 4%, transparent 5%),
    radial-gradient(circle at 26% 74%, rgba(255,255,255,.66) 0 9%, transparent 10%),
    linear-gradient(145deg, #e7e0d3, #b79e76 55%, #6e5638);
}
.meta { margin-bottom: 8px; color: var(--accent); font-size: .77rem; font-weight: 720; letter-spacing: .07em; text-transform: uppercase; }
.publication-card h3 { font-size: 1.45rem; }
.publication-card p { color: #4d5259; }
.publication-card p:last-child a { margin-right: 12px; font-size: .86rem; font-weight: 640; }

.record-list { display: grid; gap: 0; border-top: 1px solid var(--line); }
.record-card {
  padding: 30px 0;
  border: 0;
  border-bottom: 1px solid var(--line);
  border-radius: 0;
  background: transparent;
  text-align: left;
}
.record-card h3 { max-width: 820px; }
.record-card p { max-width: 820px; color: #4b5057; }
.compact-list { list-style: none; padding: 0; margin: 0; border-top: 1px solid var(--line); }
.compact-list li { padding: 18px 0; margin: 0; border-bottom: 1px solid var(--line); }
.notice { padding: 17px 20px; border: 1px solid var(--line); border-radius: 8px; background: var(--wash); }

#bio p { max-width: var(--reading); color: #41464d; }
#contact { background: #17202a; color: #f4f6f8; }
#contact h2, #contact h3, #contact .eyebrow { color: #fff; }
#contact header p { max-width: 760px; color: #c8ced5; }
#contact .contact-card { border-color: rgba(255,255,255,.14); background: rgba(255,255,255,.04); }
#contact .contact-card p { color: #c8ced5; }
#contact a { color: #d8e9f7; }
.social { display: flex; gap: 18px; padding: 0; margin: 22px 0 0; list-style: none; }
.social li { padding: 0; }
.social a { font-size: 1.2rem; text-decoration: none; }
#bottom { padding: 25px 28px; background: #111820; color: #9fa8b2; border-top: 1px solid rgba(255,255,255,.08); }
#bottom footer { margin: 0; }
#copyright { display: flex; flex-wrap: wrap; gap: 18px; margin: 0; padding: 0; list-style: none; font-size: .75rem; }
#copyright li { padding: 0; }
#bottom a { color: #c8d2dc; }

@media (max-width: 980px) {
  #nav ul.container { overflow-x: auto; gap: 20px; }
  #nav li.site-name { position: sticky; left: 0; padding-right: 18px; background: rgba(255,255,255,.96); }
  .wrapper { padding: 72px 24px; }
  .row { grid-template-columns: 1fr; gap: 42px; }
  #top { min-height: auto; }
  #top .image.fit { max-width: 280px; margin: 0; }
  .axis-grid { grid-template-columns: 1fr; }
  .axis-card, .axis-card + .axis-card { padding: 30px 0; border-left: 0; }
  .axis-card h3 { min-height: 0; }
  .project-grid, .contact-grid { grid-template-columns: 1fr; }
  .publication-card { grid-template-columns: 220px minmax(0,1fr); gap: 0 26px; }
}

@media (max-width: 680px) {
  body { font-size: 16px; }
  #nav ul.container { min-height: 58px; padding: 0 18px; }
  #nav a { padding: 20px 0 17px; font-size: .82rem; }
  .wrapper { padding: 58px 20px; }
  #top { padding-top: 44px; }
  h1 { font-size: 2.55rem; }
  .lead { font-size: 1.08rem; }
  .research-question { font-size: 1.08rem; }
  .publication-card {
    display: block;
    padding: 26px 0;
  }
  .illustration-placeholder { min-height: 190px; margin-bottom: 22px; }
  .project-card, .contact-card { min-height: 0; padding: 24px; }
  #copyright { display: block; }
}

/* Readability safeguards: neutralise legacy template text effects. */
body, h1, h2, h3, h4, p, a, strong, em, li {
  text-shadow: none !important;
  -webkit-text-stroke: 0 !important;
  font-variation-settings: normal;
}
.status-label { display: none !important; }

.hero-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 280px;
    gap: 3rem;
    align-items: center;
}

.hero-photo img {
    display: block;
    width: 100%;
    height: auto;
}

@media (max-width: 800px) {
    .hero-layout {
        grid-template-columns: 1fr;
    }

    .hero-photo {
        max-width: 280px;
        margin: 0 auto;
    }
}