:root {
  --ink: #182330;
  --muted: #596774;
  --navy: #102f4a;
  --navy-2: #173b58;
  --teal: #4f8f92;
  --teal-soft: #e9f2f1;
  --gold: #b4884f;
  --gold-soft: #f4eadc;
  --line: #d9e1e5;
  --panel: #ffffff;
  --bg: #f5f7f7;
  --paper: #fbfaf7;
  --shadow: 0 16px 40px rgba(24, 35, 48, 0.08);
  --radius: 8px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: "Source Serif 4", "Iowan Old Style", Georgia, serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.68;
}

img { max-width: 100%; display: block; }

a { color: var(--navy-2); text-decoration: none; }
a:hover { text-decoration: underline; }

p:not(.eyebrow):not(.identity):not(.meta):not(.pub-title):not(.authors):not(.journal):not(.caption),
.highlight,
.gallery-item figcaption {
  text-align: justify;
  text-align-last: left;
  hyphens: auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(251, 250, 247, 0.96);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(10px);
}

.nav-wrap {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0.85rem 1.4rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.brand {
  color: var(--navy);
  font-family: "Segoe UI", Arial, sans-serif;
  font-weight: 750;
  white-space: nowrap;
}

.nav-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 0.25rem;
  font-family: "Segoe UI", Arial, sans-serif;
}

.nav-links a {
  color: var(--ink);
  font-size: 0.93rem;
  font-weight: 600;
  padding: 0.45rem 0.65rem;
  border-radius: 6px;
}

.nav-links a.active,
.nav-links a:hover {
  color: var(--navy);
  background: var(--teal-soft);
  text-decoration: none;
}

.container {
  max-width: 1180px;
  margin: 0 auto;
  padding: 3rem 1.4rem;
}

.hero {
  background:
    linear-gradient(122deg, rgba(12, 33, 52, 0.97), rgba(27, 59, 83, 0.93)),
    radial-gradient(circle at 88% 12%, rgba(180, 136, 79, 0.22), transparent 34%);
  color: #fff;
}

.hero .container {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) 360px;
  gap: 3rem;
  align-items: center;
  padding-top: 4rem;
  padding-bottom: 4rem;
}

.eyebrow {
  margin: 0 0 0.8rem;
  color: var(--gold);
  font-family: "Segoe UI", Arial, sans-serif;
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hero h1,
.page-title {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  letter-spacing: 0;
  line-height: 1.08;
}

.hero h1 { font-size: clamp(2.4rem, 5vw, 4.65rem); color: #fff; }

.identity {
  margin: 0.95rem 0 1.25rem;
  font-family: "Segoe UI", Arial, sans-serif;
  font-size: 1.08rem;
  font-weight: 650;
  color: #d9e6e9;
}

.hero-copy {
  max-width: 780px;
  color: #eef4f4;
  font-size: 1.05rem;
}

.hero-actions,
.button-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.5rem;
}

.button,
.profile-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.42rem;
  min-height: 42px;
  padding: 0.62rem 0.95rem;
  border-radius: 6px;
  border: 1px solid var(--navy-2);
  background: var(--navy-2);
  color: #fff;
  font-family: "Segoe UI", Arial, sans-serif;
  font-weight: 750;
  line-height: 1.2;
}

.button:hover,
.profile-link:hover {
  background: var(--navy);
  border-color: var(--navy);
  color: #fff;
  text-decoration: none;
  transform: translateY(-1px);
}

.button.secondary,
.profile-link.secondary {
  background: #fff;
  color: var(--navy);
  border-color: var(--line);
}

.hero .button.secondary,
.hero .profile-link.secondary {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  border-color: rgba(255, 255, 255, 0.4);
}

.hero .button.secondary .link-icon {
  background: rgba(255, 255, 255, 0.18);
}

.link-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.35rem;
  height: 1.35rem;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.18);
  color: inherit;
  font-size: 0.72rem;
  font-weight: 850;
  font-family: "Segoe UI", Arial, sans-serif;
}

.link-icon-img {
  width: 1.15rem;
  height: 1.15rem;
  object-fit: contain;
  flex: 0 0 auto;
}

.button.secondary .link-icon,
.profile-link.secondary .link-icon,
.profile-list .link-icon {
  background: var(--teal-soft);
}

.portrait-card {
  background: rgba(251, 250, 247, 0.92);
  border: 1px solid rgba(255, 255, 255, 0.55);
  border-radius: var(--radius);
  padding: 0.9rem;
  box-shadow: var(--shadow);
  color: var(--muted);
}

.portrait-card img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  border-radius: 6px;
}

.caption {
  margin: 0.65rem 0 0;
  font-size: 0.86rem;
  color: inherit;
  opacity: 0.9;
}

.section { padding: 3.25rem 0; }
.section.alt { background: var(--paper); border-block: 1px solid var(--line); }

.section-head {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 2rem;
  margin-bottom: 1.5rem;
}

.section-head p { max-width: 760px; margin: 0.45rem 0 0; color: var(--muted); }

h2, h3 {
  color: var(--navy);
  line-height: 1.25;
  letter-spacing: 0;
}

h2 {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.7rem, 2.5vw, 2.35rem);
}

h3 { margin: 0 0 0.55rem; font-size: 1.08rem; }

.grid { display: grid; gap: 1rem; }
.grid.two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid.three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid.four { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.full-span { grid-column: 1 / -1; }

.card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.25rem;
  box-shadow: 0 8px 24px rgba(30, 54, 75, 0.05);
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow);
  border-color: #c8d6dc;
}

.card.accent { border-top: 4px solid var(--teal); }
.card.warm { border-top-color: var(--gold); }
.card p { margin: 0; color: var(--muted); }
.card p + p { margin-top: 0.8rem; }

.list-clean {
  margin: 0.75rem 0 0;
  padding: 0;
  list-style: none;
}

.list-clean li {
  padding: 0.38rem 0;
  border-top: 1px solid #edf2f4;
  color: var(--muted);
}

.list-clean.columns {
  columns: 2;
  column-gap: 2rem;
}

.page-hero {
  background: var(--paper);
  border-bottom: 1px solid var(--line);
}

.page-hero .container { padding-top: 3rem; padding-bottom: 2.5rem; }
.page-title { font-size: clamp(2.1rem, 4vw, 3.5rem); color: var(--navy); }
.lead { max-width: 860px; margin: 1rem 0 0; font-size: 1.08rem; color: var(--muted); }

.research-card {
  display: grid;
  grid-template-columns: 230px minmax(0, 1fr);
  gap: 1.2rem;
  align-items: stretch;
}

.research-visual {
  min-height: 190px;
  border-radius: 6px;
  background: linear-gradient(135deg, #e6eef0, #fbfaf7);
  border: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--navy);
  font-family: "Segoe UI", Arial, sans-serif;
  font-weight: 800;
  text-align: center;
  padding: 1rem;
}

.meta {
  color: var(--teal);
  font-family: "Segoe UI", Arial, sans-serif;
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.pub-card {
  display: grid;
  grid-template-columns: 104px minmax(0, 1fr);
  gap: 1rem;
  margin-bottom: 1rem;
}

.pub-year {
  color: var(--navy);
  font-family: "Segoe UI", Arial, sans-serif;
  font-size: 1.1rem;
  font-weight: 850;
}

.pub-title { font-weight: 800; color: var(--navy); margin: 0 0 0.35rem; }
.authors, .journal, .highlight { margin: 0.2rem 0; color: var(--muted); }
.journal { font-style: italic; }
.highlight { color: var(--ink); }

.publication-list {
  padding-top: 1rem;
}

.year-heading {
  margin: 2.2rem 0 1rem;
  font-size: 1.45rem;
  border-bottom: 1px solid var(--line);
  padding-bottom: 0.5rem;
}

.year-heading:first-child { margin-top: 0; }

.link-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin-top: 0.75rem;
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  min-height: 30px;
  border-radius: 999px;
  padding: 0.28rem 0.65rem;
  border: 1px solid var(--line);
  background: #fff;
  color: var(--navy);
  font-family: "Segoe UI", Arial, sans-serif;
  font-size: 0.84rem;
  font-weight: 750;
}

.pill:hover { background: var(--teal-soft); text-decoration: none; }

.timeline {
  border-left: 3px solid var(--teal);
  padding-left: 1.25rem;
}

.timeline .card {
  position: relative;
  margin-bottom: 1rem;
}

.timeline .card::before {
  content: "";
  position: absolute;
  left: calc(-1.25rem - 8px);
  top: 1.35rem;
  width: 13px;
  height: 13px;
  border-radius: 50%;
  background: var(--gold);
  border: 3px solid #fff;
}

.highlight-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.gallery-carousel {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: #fff;
  box-shadow: var(--shadow);
  margin-bottom: 2rem;
}

.carousel-track {
  display: flex;
  width: 400%;
  animation: gallerySlide 20s infinite;
}

.carousel-slide {
  width: 25%;
  margin: 0;
  position: relative;
  background: #132f48;
}

.carousel-slide img {
  width: 100%;
  height: min(62vh, 560px);
  object-fit: contain;
  object-position: center center;
}

.carousel-slide figcaption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 1rem 1.2rem;
  color: #fff;
  background: linear-gradient(transparent, rgba(10, 24, 35, 0.86));
  text-align: left;
}

.carousel-dots {
  position: absolute;
  right: 1rem;
  bottom: 1rem;
  display: flex;
  gap: 0.35rem;
}

.carousel-dots span {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.55);
}

@keyframes gallerySlide {
  0%, 20% { transform: translateX(0); }
  25%, 45% { transform: translateX(-25%); }
  50%, 70% { transform: translateX(-50%); }
  75%, 95% { transform: translateX(-75%); }
  100% { transform: translateX(0); }
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.gallery-section-title {
  margin: 2rem 0 1rem;
  font-size: 1.35rem;
}

.gallery-section-title.first { margin-top: 0; }

.gallery-item {
  margin: 0;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.gallery-item:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow);
}

.gallery-item img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: contain;
  object-position: center center;
  background: #eef3f3;
}

.gallery-item figcaption {
  padding: 0.8rem 0.9rem;
  color: var(--muted);
  font-size: 0.92rem;
}

.contact-panel {
  background: var(--navy);
  color: #fff;
  border-radius: var(--radius);
  padding: 1.6rem;
}

.contact-panel h3 { color: #fff; }
.contact-panel h3 + p { margin-top: 0.4rem; }
.contact-panel p { color: #e8eef0; }
.contact-panel a {
  color: #fff;
  font-weight: 750;
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
}

.profile-list {
  display: grid;
  gap: 0.65rem;
}

.profile-list a {
  justify-content: flex-start;
  background: #fff;
  color: var(--navy);
}

.contact-form {
  display: grid;
  gap: 0.75rem;
}

.contact-form label {
  color: var(--navy);
  font-family: "Segoe UI", Arial, sans-serif;
  font-size: 0.9rem;
  font-weight: 750;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 0.75rem 0.85rem;
  background: #fff;
  color: var(--ink);
  font: inherit;
}

.contact-form input:focus,
.contact-form textarea:focus {
  outline: 2px solid rgba(79, 143, 146, 0.28);
  border-color: var(--teal);
}

.contact-form .button {
  border: 0;
  cursor: pointer;
  justify-self: start;
}

.site-footer {
  border-top: 1px solid var(--line);
  background: var(--paper);
  color: var(--muted);
}

.site-footer .container {
  padding-top: 1.5rem;
  padding-bottom: 1.5rem;
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  font-family: "Segoe UI", Arial, sans-serif;
  font-size: 0.9rem;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .carousel-track { animation: none; width: 100%; }
  .carousel-slide { width: 100%; }
  .carousel-slide:not(:first-child) { display: none; }
  .card, .button, .profile-link, .gallery-item { transition: none; }
}

@media (max-width: 900px) {
  .nav-wrap { align-items: flex-start; flex-direction: column; }
  .nav-links { justify-content: flex-start; }
  .hero .container { grid-template-columns: 1fr; }
  .portrait-card { max-width: 360px; }
  .grid.two, .grid.three, .grid.four, .gallery-grid, .highlight-grid { grid-template-columns: 1fr 1fr; }
  .research-card { grid-template-columns: 1fr; }
  .list-clean.columns { columns: 1; }
}

@media (max-width: 620px) {
  .container { padding-left: 1rem; padding-right: 1rem; }
  .nav-links { overflow-x: auto; width: 100%; flex-wrap: nowrap; padding-bottom: 0.2rem; }
  .nav-links a { white-space: nowrap; }
  .hero .container { padding-top: 2.8rem; padding-bottom: 2.8rem; }
  .grid.two, .grid.three, .grid.four, .gallery-grid, .highlight-grid { grid-template-columns: 1fr; }
  .pub-card { grid-template-columns: 1fr; }
  .section-head { display: block; }
  .carousel-slide img { height: 360px; }
}
