:root {
  --ink: #11263c;
  --ink-soft: #3d5063;
  --paper: #f8f7f2;
  --paper-deep: #ebeae3;
  --teal: #166978;
  --teal-deep: #0c4c58;
  --rust: #ba7148;
  --line: #d3d8d4;
  --white: #ffffff;
  --shadow: 0 20px 44px rgba(16, 40, 63, 0.14);
  --content-width: 1160px;
  --display: Georgia, "Times New Roman", serif;
  --body: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  min-width: 320px;
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: var(--body);
  font-size: 1rem;
  line-height: 1.65;
  text-rendering: optimizeLegibility;
}

a {
  color: inherit;
  text-underline-offset: 0.18em;
}

a:focus-visible,
button:focus-visible {
  outline: 3px solid var(--rust);
  outline-offset: 4px;
}

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

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1,
h2,
h3 {
  font-family: var(--display);
  font-weight: 400;
  line-height: 1.08;
  letter-spacing: -0.035em;
}

h1 {
  max-width: none;
  margin-bottom: 0.3em;
  font-size: clamp(2.4rem, 6.5vw, 5rem);
  letter-spacing: -0.055em;
  white-space: nowrap;
}

h2 {
  margin-bottom: 0.45em;
  font-size: clamp(2.25rem, 4.3vw, 4.15rem);
}

h3 {
  margin-bottom: 0.7rem;
  font-size: clamp(1.55rem, 2.4vw, 2.1rem);
}

.container {
  width: min(calc(100% - 3rem), var(--content-width));
  margin-inline: auto;
}

.section {
  padding-block: clamp(4.5rem, 10vw, 8.5rem);
}

.eyebrow {
  margin-bottom: 1rem;
  color: var(--teal);
  font-size: 0.74rem;
  font-weight: 750;
  letter-spacing: 0.15em;
  line-height: 1.2;
  text-transform: uppercase;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: fixed;
  z-index: 100;
  top: 0.5rem;
  left: 0.5rem;
  padding: 0.75rem 1rem;
  color: var(--white);
  background: var(--ink);
  transform: translateY(-150%);
}

.skip-link:focus {
  transform: translateY(0);
}

.site-header {
  position: absolute;
  z-index: 5;
  top: 0;
  right: 0;
  left: 0;
  padding-block: 1.25rem;
  color: var(--white);
}

.nav-shell,
.site-nav,
.wordmark,
.hero-actions,
.footer-inner {
  display: flex;
  align-items: center;
}

.nav-shell {
  justify-content: space-between;
  gap: 1rem;
}

.wordmark {
  gap: 0.7rem;
  color: var(--white);
  font-size: 0.95rem;
  font-weight: 700;
  text-decoration: none;
}

.wordmark-mark {
  display: grid;
  width: 2.05rem;
  height: 2.05rem;
  place-items: center;
  color: var(--ink);
  background: #f0b66c;
  border-radius: 50%;
  font-family: var(--display);
  font-size: 0.83rem;
}

.site-nav {
  gap: clamp(0.85rem, 2vw, 1.75rem);
}

.site-nav a {
  color: rgba(255, 255, 255, 0.9);
  font-size: 1rem;
  font-weight: 600;
  text-decoration: none;
}

.site-nav a:hover {
  color: var(--white);
  text-decoration: underline;
}

.hero {
  position: relative;
  overflow: hidden;
  padding-top: clamp(8rem, 16vw, 11.5rem);
  padding-bottom: clamp(4.5rem, 8vw, 7rem);
  color: var(--white);
  background:
    radial-gradient(circle at 88% 16%, rgba(81, 176, 183, 0.33), transparent 27%),
    radial-gradient(circle at 36% 122%, rgba(210, 137, 75, 0.24), transparent 33%),
    linear-gradient(123deg, #0a2439 0%, #102c43 51%, #113b4a 100%);
}

.hero::after {
  position: absolute;
  inset: auto -10% -25% auto;
  width: min(52vw, 620px);
  aspect-ratio: 1;
  content: "";
  border: 1px solid rgba(255, 255, 255, 0.17);
  border-radius: 50%;
  box-shadow: 0 0 0 62px rgba(255, 255, 255, 0.025), 0 0 0 124px rgba(255, 255, 255, 0.025);
}

.hero-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1.28fr) minmax(270px, 0.62fr);
  align-items: center;
  gap: clamp(2.75rem, 6vw, 5.5rem);
}

.hero .eyebrow {
  color: #95d0d3;
}

.hero-role {
  max-width: 34rem;
  margin-bottom: 0.55rem;
  color: #f1c27f;
  font-size: clamp(1.18rem, 2vw, 1.48rem);
  font-weight: 650;
  letter-spacing: -0.015em;
}

.hero-affiliation {
  margin-bottom: 1.9rem;
  color: rgba(255, 255, 255, 0.77);
  font-size: 1rem;
}

.hero-statement {
  max-width: 43rem;
  margin-bottom: 2.25rem;
  font-family: var(--display);
  font-size: clamp(1.32rem, 2.35vw, 1.82rem);
  line-height: 1.4;
}

.hero-actions {
  flex-wrap: wrap;
  gap: 0.85rem;
  margin-bottom: 1.55rem;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 3rem;
  padding: 0.72rem 1.1rem;
  border: 1px solid transparent;
  border-radius: 0.2rem;
  font-size: 0.92rem;
  font-weight: 700;
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
  transition: background 160ms ease, color 160ms ease, border-color 160ms ease, transform 160ms ease;
}

button.button {
  font-family: inherit;
  cursor: pointer;
}

.button:hover {
  transform: translateY(-2px);
}

.button-primary {
  color: #11283d;
  background: #f0b66c;
}

.button-primary:hover {
  background: #ffd195;
}

.button-secondary {
  color: var(--white);
  border-color: rgba(255, 255, 255, 0.55);
}

.button-secondary:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: var(--white);
}

.button-light {
  min-width: 9.25rem;
  color: var(--ink);
  background: var(--white);
}

.button-light:hover {
  color: var(--white);
  background: var(--teal-deep);
}

.profile-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
}

.button-tertiary {
  min-height: 2.65rem;
  padding: 0.58rem 0.88rem;
  color: rgba(255, 255, 255, 0.94);
  border-color: rgba(255, 255, 255, 0.38);
  background: rgba(255, 255, 255, 0.055);
  font-size: 0.84rem;
}

.button-tertiary:hover {
  color: var(--white);
  border-color: rgba(255, 255, 255, 0.78);
  background: rgba(255, 255, 255, 0.14);
}

.hero-visual {
  max-width: 380px;
  justify-self: end;
}

.portrait-frame {
  position: relative;
  overflow: hidden;
  aspect-ratio: 0.89;
  background: #d9d5ca;
  box-shadow: var(--shadow);
}

.portrait-frame::before,
.portrait-frame::after {
  position: absolute;
  z-index: 1;
  content: "";
  pointer-events: none;
}

.portrait-frame::before {
  inset: 1rem;
  border: 1px solid rgba(255, 255, 255, 0.62);
}

.portrait-frame::after {
  right: -7%;
  bottom: -8%;
  width: 42%;
  aspect-ratio: 1;
  border: 1px solid rgba(12, 76, 88, 0.72);
  border-radius: 50%;
}

.portrait-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 28%;
  filter: saturate(0.88) contrast(1.04);
}

.portrait-caption {
  display: grid;
  grid-template-columns: min-content 1fr;
  gap: 0.35rem 0.75rem;
  align-items: center;
  padding-top: 1.1rem;
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.62rem;
  font-weight: 750;
  letter-spacing: 0.12em;
}

.caption-rule {
  grid-row: span 2;
  width: 0.22rem;
  height: 100%;
  background: var(--rust);
}

.split-heading {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(250px, 0.56fr);
  gap: 2rem 5rem;
  align-items: end;
  margin-bottom: 3.4rem;
}

.section-heading h2 {
  max-width: 11ch;
}

.section-heading > p {
  max-width: 32rem;
  margin-bottom: 0.55rem;
  color: var(--ink-soft);
}

@media (min-width: 861px) {
  .split-heading > p {
    /* Match the h2's responsive bottom margin so visible text bottoms align. */
    margin-bottom: clamp(1.0125rem, 1.935vw, 1.8675rem);
  }
}

.research-section {
  background: var(--paper);
}

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

.research-card {
  display: flex;
  flex-direction: column;
  min-height: 100%;
  overflow: hidden;
  background: var(--white);
  border: 1px solid var(--line);
}

.research-card-featured {
  border-color: #7baab0;
  box-shadow: 0 18px 36px rgba(17, 38, 60, 0.06);
}

.research-visual {
  position: relative;
  min-height: 15.5rem;
  overflow: hidden;
}

/* If a research card is changed to use an uploaded figure, use this class. */
.research-image {
  width: 100%;
  height: 100%;
  min-height: inherit;
  object-fit: cover;
}

.ct-visual {
  background: linear-gradient(135deg, #1c2e3e 0%, #32556a 100%);
}

.ct-visual::before {
  position: absolute;
  inset: -48% 34% auto -22%;
  height: 150%;
  content: "";
  background: radial-gradient(circle, rgba(202, 222, 219, 0.82) 0 8%, rgba(125, 164, 171, 0.35) 8.5% 19%, transparent 19.5%);
  transform: rotate(-20deg);
}

.ct-label {
  position: absolute;
  z-index: 2;
  top: 1.25rem;
  left: 1.35rem;
  color: rgba(255, 255, 255, 0.9);
  font-size: 0.66rem;
  font-weight: 750;
  letter-spacing: 0.16em;
}

.ct-scan {
  position: absolute;
  z-index: 1;
  width: 42%;
  aspect-ratio: 1;
  border: 1px solid rgba(255, 255, 255, 0.53);
  border-radius: 50%;
  background: repeating-radial-gradient(circle at 50% 50%, rgba(245, 246, 236, 0.2) 0 6%, transparent 7% 13%);
}

.ct-scan::after {
  position: absolute;
  top: 24%;
  right: 26%;
  width: 16%;
  aspect-ratio: 1;
  content: "";
  background: #f3b467;
  border-radius: 50%;
  box-shadow: -50px 36px 0 -3px rgba(142, 201, 200, 0.92), 28px 48px 0 -4px rgba(255, 255, 255, 0.82);
}

.ct-scan-one { right: -5%; bottom: -25%; }
.ct-scan-two { right: 23%; bottom: 16%; transform: scale(0.58); opacity: 0.85; }
.ct-scan-three { right: 1%; bottom: 28%; transform: scale(0.34); opacity: 0.75; }

.ct-scale {
  position: absolute;
  z-index: 3;
  right: 1.25rem;
  bottom: 1.25rem;
  display: flex;
  gap: 0.25rem;
  align-items: end;
}

.ct-scale span {
  width: 0.4rem;
  background: rgba(255, 255, 255, 0.67);
}

.ct-scale span:nth-child(1) { height: 0.45rem; }
.ct-scale span:nth-child(2) { height: 0.75rem; }
.ct-scale span:nth-child(3) { height: 1.1rem; background: #f3b467; }
.ct-scale span:nth-child(4) { height: 0.86rem; }
.ct-scale span:nth-child(5) { height: 0.58rem; }

.spectrum-visual {
  background: #d8e9e7;
}

.spectrum-visual::after {
  position: absolute;
  inset: 1.2rem;
  content: "";
  border: 1px solid rgba(15, 78, 91, 0.18);
}

.spectrum-axis,
.spectrum-curve,
.spectrum-tick,
.spectrum-label {
  position: absolute;
  z-index: 1;
}

.spectrum-axis {
  background: #37636a;
}

.spectrum-axis-x { right: 15%; bottom: 18%; left: 15%; height: 1px; }
.spectrum-axis-y { top: 16%; bottom: 18%; left: 15%; width: 1px; }

.spectrum-curve {
  bottom: 18%;
  left: 15%;
  width: 67%;
  height: 57%;
  border-style: solid;
  border-width: 0.22rem 0.22rem 0 0;
  border-radius: 0 100% 0 0;
  transform: skewX(-16deg) rotate(-18deg);
  transform-origin: bottom left;
}

.spectrum-curve-cu {
  border-color: #bc7047;
  box-shadow: 19px 3px 0 -0.12rem #bc7047;
}

.spectrum-curve-sn {
  width: 54%;
  height: 37%;
  border-color: #0d6473;
  transform: skewX(-12deg) rotate(-7deg);
}

.spectrum-label {
  color: #183b48;
  font-size: 0.72rem;
  font-weight: 750;
}

.spectrum-label-cu { top: 25%; right: 16%; color: #9d542e; }
.spectrum-label-sn { top: 47%; right: 23%; color: #0d6473; }

.spectrum-tick { bottom: 18%; width: 1px; height: 0.55rem; background: #37636a; }
.spectrum-tick-one { left: 34%; }
.spectrum-tick-two { left: 53%; }
.spectrum-tick-three { left: 72%; }

.data-visual {
  background: linear-gradient(140deg, #e5e0d3 0%, #d7d5cd 46%, #a5c1be 100%);
}

.data-orbit {
  position: absolute;
  border: 1px solid rgba(17, 38, 60, 0.45);
  border-radius: 50%;
}

.data-orbit-one { top: 19%; left: 18%; width: 67%; height: 49%; transform: rotate(-23deg); }
.data-orbit-two { top: 26%; left: 25%; width: 52%; height: 40%; transform: rotate(42deg); }

.data-node {
  position: absolute;
  width: 0.8rem;
  aspect-ratio: 1;
  border-radius: 50%;
  box-shadow: 0 0 0 4px rgba(248, 247, 242, 0.45);
}

.data-node-one { top: 24%; left: 26%; background: var(--rust); }
.data-node-two { top: 34%; right: 24%; background: var(--teal); }
.data-node-three { right: 37%; bottom: 24%; background: #f8f7f2; }
.data-node-four { bottom: 27%; left: 27%; background: #314e63; }

.data-code {
  position: absolute;
  right: 1.25rem;
  bottom: 1.1rem;
  color: #143142;
  font-size: 0.62rem;
  font-weight: 750;
  letter-spacing: 0.12em;
}

.research-card-copy {
  flex: 1;
  padding: 1.6rem 1.45rem 1.75rem;
}

.card-index {
  margin-bottom: 1rem;
  color: var(--teal);
  font-size: 0.72rem;
  font-weight: 750;
  letter-spacing: 0.12em;
}

.research-card-copy p:last-child {
  margin-bottom: 0;
  color: var(--ink-soft);
  font-size: 0.94rem;
}

.publications-section {
  color: var(--white);
  background: var(--ink);
}

.publications-section .eyebrow {
  color: #91ced2;
}

.publications-layout {
  display: grid;
  grid-template-columns: minmax(210px, 0.7fr) minmax(0, 1.3fr);
  gap: clamp(3rem, 10vw, 9rem);
}

.publications-intro h2 {
  max-width: 8ch;
}

.publications-intro p {
  max-width: 22rem;
  color: rgba(255, 255, 255, 0.72);
}

.text-link {
  color: #f0b66c;
  font-size: 0.93rem;
  font-weight: 700;
}

.text-link:hover,
.publication-link:hover {
  color: var(--white);
}

.publication-list {
  display: grid;
  gap: 0;
  padding: 0;
  margin: 0;
  list-style: none;
  counter-reset: publications;
}

.publication-list > li {
  counter-increment: publications;
}

.publication {
  position: relative;
  padding: 1.8rem 0 2rem 4rem;
  border-top: 1px solid rgba(255, 255, 255, 0.23);
}

.publication::before {
  position: absolute;
  top: 1.92rem;
  left: 0;
  color: #88cfd1;
  font-size: 0.75rem;
  font-weight: 750;
  letter-spacing: 0.14em;
  content: "0" counter(publications);
}

.publication-meta {
  margin-bottom: 0.65rem;
  color: #94cfd0;
  font-size: 0.73rem;
  font-weight: 750;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.publication h3 {
  max-width: 40rem;
  margin-bottom: 0.75rem;
  font-size: clamp(1.55rem, 2.8vw, 2.34rem);
}

.publication-authors {
  margin-bottom: 1rem;
  color: rgba(255, 255, 255, 0.69);
  font-size: 0.92rem;
}

.publication-link {
  color: #f0b66c;
  font-size: 0.9rem;
  font-weight: 750;
}

.recognition-section {
  padding-block: clamp(3.5rem, 7vw, 5.5rem);
  background: #e9e4d9;
}

.recognition-layout {
  display: grid;
  grid-template-columns: minmax(200px, 0.7fr) minmax(0, 1.2fr);
  gap: 2rem 6rem;
}

.recognition-layout h2 {
  max-width: 10ch;
}

.recognition-list {
  display: grid;
  gap: 0;
  padding: 0;
  margin: 0;
  list-style: none;
}

.recognition-list li {
  display: grid;
  grid-template-columns: 6rem 1fr;
  gap: 1rem;
  padding-block: 1rem;
  border-top: 1px solid rgba(17, 38, 60, 0.22);
}

.recognition-list li:last-child {
  border-bottom: 1px solid rgba(17, 38, 60, 0.22);
}

.recognition-list span {
  color: var(--teal);
  font-size: 0.78rem;
  font-weight: 750;
  letter-spacing: 0.08em;
}

.cv-section {
  padding-block: clamp(3.5rem, 8vw, 6rem);
  background: var(--teal);
}

.cv-panel {
  display: flex;
  gap: 2rem;
  align-items: center;
  justify-content: space-between;
  color: var(--white);
}

.cv-panel .eyebrow {
  color: #b9e1dd;
}

.cv-panel h2 {
  max-width: 15ch;
  margin-bottom: 0.55rem;
  font-size: clamp(2rem, 3.6vw, 3.3rem);
}

.cv-panel p {
  max-width: 40rem;
  margin-bottom: 0;
  color: rgba(255, 255, 255, 0.81);
}

.contact-section {
  background: var(--paper);
}

.contact-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
  gap: 3rem 6rem;
  align-items: end;
}

.contact-layout h2 {
  font-size: clamp(3rem, 5.5vw, 5rem);
}

.contact-layout p {
  max-width: 27rem;
  margin-bottom: 0;
  color: var(--ink-soft);
}

.contact-actions {
  display: grid;
  gap: 0.7rem;
}

.contact-primary-actions,
.contact-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
}

.contact-section .button-secondary {
  color: var(--ink);
  border-color: rgba(17, 40, 61, 0.42);
}

.contact-section .button-secondary:hover {
  color: var(--ink);
  border-color: var(--teal);
  background: rgba(16, 113, 126, 0.1);
}

.contact-email {
  font-variant-numeric: slashed-zero;
  letter-spacing: -0.02em;
}

.contact-section .button-tertiary {
  color: var(--ink-soft);
  border-color: rgba(17, 40, 61, 0.26);
  background: rgba(17, 40, 61, 0.035);
}

.contact-section .button-tertiary:hover {
  color: var(--ink);
  border-color: rgba(17, 40, 61, 0.5);
  background: rgba(16, 113, 126, 0.1);
}

.site-footer {
  padding-block: 1.6rem;
  color: rgba(255, 255, 255, 0.72);
  background: #0c2032;
  font-size: 0.8rem;
}

.footer-inner {
  justify-content: space-between;
  gap: 1rem;
}

.footer-inner p {
  margin: 0;
}

@media (max-width: 860px) {
  .hero-grid,
  .split-heading,
  .publications-layout,
  .recognition-layout,
  .contact-layout {
    grid-template-columns: 1fr;
  }

  .hero-grid {
    gap: 3.5rem;
  }

  .hero-visual {
    width: min(100%, 360px);
    justify-self: start;
  }

  .split-heading,
  .publications-layout {
    gap: 1.5rem;
  }

  .section-heading h2,
  .publications-intro h2,
  .recognition-layout h2 {
    max-width: 15ch;
  }

  .research-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .research-card {
    display: grid;
    grid-template-columns: minmax(200px, 0.7fr) minmax(0, 1fr);
  }

  .research-card-copy {
    padding: 1.5rem;
  }

  .research-visual {
    min-height: 100%;
  }

  .recognition-layout {
    gap: 1rem;
  }
}

@media (max-width: 600px) {
  .container {
    width: min(calc(100% - 2rem), var(--content-width));
  }

  .site-header {
    padding-block: 0.85rem;
  }

  .wordmark {
    font-size: 0.78rem;
  }

  .wordmark-mark {
    width: 1.7rem;
    height: 1.7rem;
    font-size: 0.72rem;
  }

  .site-nav {
    gap: 0.65rem;
  }

  .site-nav a {
    font-size: 0.82rem;
  }

  .hero {
    padding-top: 7rem;
  }

  .hero-actions .button {
    width: 100%;
  }

  .profile-actions .button {
    flex: 1 1 auto;
  }

  .contact-primary-actions .button {
    width: 100%;
  }

  .contact-links .button {
    flex: 1 1 auto;
  }

  .research-card {
    display: flex;
  }

  .research-visual {
    min-height: 13.5rem;
  }

  .publication {
    padding-left: 3.3rem;
  }

  .recognition-list li {
    grid-template-columns: 1fr;
    gap: 0.15rem;
  }

  .cv-panel,
  .footer-inner {
    align-items: flex-start;
    flex-direction: column;
  }

  .button-light {
    width: 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}
