@font-face {
  font-family: "Instrument Serif";
  src: url("assets/instrument-serif-regular.ttf") format("truetype");
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}

@font-face {
  font-family: "Instrument Serif";
  src: url("assets/instrument-serif-italic.ttf") format("truetype");
  font-style: italic;
  font-weight: 400;
  font-display: swap;
}

@font-face {
  font-family: "DM Sans";
  src: url("assets/dm-sans.ttf") format("truetype");
  font-style: normal;
  font-weight: 100 1000;
  font-display: swap;
}

:root {
  color-scheme: dark;
  --canvas: #120f13;
  --surface: #1a1419;
  --surface-lift: #20171c;
  --line: #3a2b32;
  --edge: #50343c;
  --paper: #fff1eb;
  --body: #d3c3c8;
  --muted: #b8a7af;
  --rose: #f4b1a4;
  --rose-light: #faccbf;
  --dark-ink: #2a151c;
  --display: "Instrument Serif", Georgia, serif;
  --sans: "DM Sans", system-ui, sans-serif;
  --header-height: 4.625rem;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-height) + 1.125rem);
}

body {
  margin: 0;
  background: var(--canvas);
  color: var(--paper);
  font: 1rem/1.65 var(--sans);
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, p, figure, dl, dd { margin: 0; }
a { color: inherit; }
button { font: inherit; }
img { display: block; max-width: 100%; }

::selection { background: var(--rose-light); color: var(--dark-ink); }
:focus-visible { outline: 2px solid var(--rose); outline-offset: 5px; border-radius: 3px; }

.shell {
  width: min(74rem, calc(100% - 7rem));
  margin-inline: auto;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

.skip-link {
  position: fixed;
  z-index: 5;
  top: .75rem;
  left: 1rem;
  padding: .5rem 1rem;
  transform: translateY(calc(-100% - 1rem));
  background: var(--rose-light);
  color: var(--dark-ink);
}
.skip-link:focus { transform: none; }

.site-header {
  position: sticky;
  z-index: 3;
  top: 0;
  background: rgba(18, 15, 19, .94);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(18px);
}

.header-inner {
  min-height: var(--header-height);
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 1rem;
}

.wordmark {
  display: inline-flex;
  align-items: center;
  justify-self: start;
  gap: .75rem;
  min-height: 2.75rem;
  color: var(--paper);
  font-weight: 650;
  font-size: .9375rem;
  white-space: nowrap;
  text-decoration: none;
}
.wordmark-degree { font-weight: 450; color: var(--muted); }

.monogram {
  display: grid;
  place-items: center;
  width: 2.375rem;
  height: 2.375rem;
  background: #27191f;
  border: 1px solid var(--edge);
  border-radius: 50%;
  color: var(--rose-light);
  font: 400 1.125rem/1 var(--display);
  letter-spacing: -.015em;
}

.site-nav {
  display: flex;
  gap: clamp(1rem, 2.6vw, 2.375rem);
}

.site-nav a, .footer-nav a {
  display: flex;
  align-items: center;
  min-height: 2.75rem;
  color: var(--body);
  font-size: .9375rem;
  font-weight: 520;
  text-underline-offset: .3em;
  text-decoration-color: transparent;
  transition: color .16s ease, text-decoration-color .16s ease;
}
.site-nav a:hover, .footer-nav a:hover { color: var(--rose-light); text-decoration-color: currentColor; }

.header-orcid, .menu-toggle {
  justify-self: end;
  align-items: center;
  padding: .4rem .925rem;
  min-height: 2.5rem;
  border: 1px solid var(--edge);
  border-radius: 999px;
  color: var(--rose-light);
  background: transparent;
  font-size: .875rem;
  font-weight: 650;
  text-decoration: none;
}
.header-orcid { display: inline-flex; }
.header-orcid:hover, .menu-toggle:hover { background: #2c1c24; }
.menu-toggle { display: none; cursor: pointer; }

.hero {
  position: relative;
  isolation: isolate;
  overflow: clip;
  border-bottom: 1px solid var(--line);
  background: radial-gradient(ellipse at 78% 46%, #2f1925 0%, #1b131c 42%, var(--canvas) 74%), var(--canvas);
}

.hero-atmosphere {
  position: absolute;
  z-index: -1;
  inset: 0;
  pointer-events: none;
}

.hero-atmosphere::before {
  content: "";
  position: absolute;
  top: 50%;
  right: max(-2rem, calc((100vw - 90rem) / 2));
  width: min(69vw, 56rem);
  aspect-ratio: 1;
  transform: translateY(-50%);
  background: url("assets/cardiac-network.webp") center / contain no-repeat;
  filter: saturate(.68);
  opacity: .34;
  mix-blend-mode: screen;
  mask-image: radial-gradient(ellipse 56% 53% at 50% 50%, #000 32%, rgba(0, 0, 0, .87) 58%, transparent 94%);
}

.hero-atmosphere canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.hero-inner {
  position: relative;
  isolation: isolate;
  min-height: 38.5rem;
  display: grid;
  align-items: center;
}

.hero-copy {
  position: relative;
  z-index: 1;
  width: min(100%, 46rem);
  padding-block: 4rem 4.7rem;
}

.hero-name {
  --hero-title-size: clamp(6rem, 9.6vw, 9.125rem);
  display: flex;
  align-items: center;
}

.eyebrow {
  color: var(--rose);
  font-weight: 650;
  font-size: .875rem;
  line-height: 1.4;
  letter-spacing: .075em;
  text-transform: uppercase;
}

.hero-role {
  position: relative;
  top: -.75rem;
  display: flex;
  align-items: center;
  gap: .75rem;
  margin-bottom: 1.5rem;
}
.hero-role::before {
  content: "";
  width: 1.75rem;
  height: 1px;
  flex: 0 0 auto;
  background: currentColor;
}

.hero h1 {
  position: relative;
  z-index: 1;
  color: var(--paper);
  font: 400 var(--hero-title-size)/.80 var(--display);
  letter-spacing: -.024em;
}
.hero h1 > span { display: block; }
.hero .degree {
  display: inline-block;
  font-size: .44em;
  color: var(--rose-light);
  font-style: italic;
  letter-spacing: -.01em;
  padding-left: .08em;
}

.hero-intro {
  width: min(100%, 28rem);
  margin-top: 1.9rem;
  color: var(--body);
  font: 400 clamp(1.8rem, 3.2vw, 2.65rem)/1.12 var(--display);
  text-wrap: balance;
}

.hero-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: .75rem;
}

.hero-actions { margin-top: 1.8rem; }

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  min-height: 3rem;
  padding: .68rem 1.15rem;
  border: 1px solid transparent;
  border-radius: .375rem;
  font-weight: 650;
  font-size: .9375rem;
  text-decoration: none;
  transition: background-color .16s ease, border-color .16s ease, color .16s ease;
}
.button-primary { background: var(--rose-light); border-color: var(--rose-light); color: var(--dark-ink); }
.button-primary:hover { background: var(--paper); border-color: var(--paper); }
.button-quiet { color: var(--paper); background: #1d151b; border-color: var(--edge); }
.button-quiet:hover { background: #312129; border-color: var(--rose); }

.file-type {
  color: var(--rose);
  font-size: .75rem;
  font-weight: 650;
  letter-spacing: .075em;
}

.hero-portrait {
  display: grid;
  align-items: end;
  flex: 0 0 auto;
  width: clamp(7rem, 14vw, 12.5rem);
  aspect-ratio: 1;
  margin-inline-start: calc(var(--hero-title-size) * -.49);
  transform: translateY(-26.5%);
  overflow: hidden;
  border: 1px solid #865b68;
  border-radius: 50%;
  background: radial-gradient(circle at 50% 27%, #4b2e3b, #21161e 76%);
  box-shadow: 0 .8rem 2.2rem #130b13a6;
}

.hero-portrait img {
  width: 100%;
  height: auto;
  filter: saturate(.88) brightness(.96);
  mask-image: linear-gradient(#000 82%, transparent);
}

.section { padding-block: clamp(4.5rem, 7.6vw, 7rem); border-bottom: 1px solid var(--line); }

.section h2 {
  font: 400 clamp(3.45rem, 5.5vw, 5.125rem)/.98 var(--display);
  letter-spacing: -.012em;
}

.research-section {
  background:
    radial-gradient(ellipse at 50% 47%, #261820 0%, transparent 62%),
    #171217;
}
.research-heading p { color: var(--muted); margin-top: .8rem; }

.motion-toggle {
  min-height: 2.75rem;
  padding: .45rem 1rem;
  color: var(--rose-light);
  background: transparent;
  border: 1px solid var(--edge);
  border-radius: 999px;
  font-size: .875rem;
  font-weight: 620;
  cursor: pointer;
}
.motion-toggle:hover { background: #322029; border-color: #a46c72; }

.research-map {
  --node-size: clamp(10.5rem, 17.5vw, 13.25rem);
  position: relative;
  isolation: isolate;
  min-height: 0;
  height: clamp(37rem, 58vw, 44rem);
  border: 1px solid var(--line);
  border-radius: .85rem;
  background:
    radial-gradient(ellipse at 50% 50%, rgba(76, 37, 51, .72), transparent 58%),
    #171118;
}

.research-orbits {
  position: absolute;
  top: 50%;
  left: 50%;
  width: min(49%, 34rem);
  aspect-ratio: 1;
  transform: translate(-50%, -50%);
  pointer-events: none;
  border-radius: 50%;
  border: 1px solid #5c384449;
  background-image: radial-gradient(circle, #d59e9b31 1px, transparent 1.5px);
  background-size: 23px 23px;
  mask-image: radial-gradient(circle, #000 47%, rgba(0, 0, 0, .7) 59%, #000 71%);
}

.research-orbits::before, .research-orbits::after {
  position: absolute;
  content: "";
  inset: 13%;
  border: 1px dashed #b47f852e;
  border-radius: 50%;
}
.research-orbits::after { inset: 25%; border-style: solid; }

.research-signals {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.research-heart {
  position: absolute;
  top: 50%;
  left: 50%;
  z-index: 1;
  width: clamp(14rem, 26vw, 22rem);
  transform: translate(-50%, -50%);
  pointer-events: none;
  filter: drop-shadow(0 .9rem 2rem #120b12bd);
}

.research-heart img {
  width: 100%;
  height: auto;
  filter: saturate(.79) brightness(.91);
}

.research-nodes {
  list-style: none;
  padding: 0;
  margin: 0;
}

.research-nodes > li {
  position: absolute;
  z-index: 2;
  top: var(--node-y);
  left: var(--node-x);
  transform: translate(-50%, -50%);
}
.research-nodes > li:nth-child(1) { --node-x: 18%; --node-y: 18%; }
.research-nodes > li:nth-child(2) { --node-x: 12.5%; --node-y: 50%; }
.research-nodes > li:nth-child(3) { --node-x: 18%; --node-y: 82%; }
.research-nodes > li:nth-child(4) { --node-x: 82%; --node-y: 18%; }
.research-nodes > li:nth-child(5) { --node-x: 87.5%; --node-y: 50%; }
.research-nodes > li:nth-child(6) { --node-x: 82%; --node-y: 82%; }

.research-node {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: .48rem;
  width: var(--node-size);
  height: var(--node-size);
  padding: .65rem;
  text-align: center;
  color: var(--paper);
  background: radial-gradient(circle at 50% 12%, #412633, #21171f 73%);
  border: 1px solid #6e4855;
  border-radius: 50%;
  box-shadow: inset 0 0 0 5px #1b131c91, 0 1.25rem 2.25rem #0d080d55;
  cursor: pointer;
  transition: border-color .18s ease, background-color .18s ease, box-shadow .18s ease, transform .18s ease;
}

.research-node[aria-pressed="true"] {
  border-color: #eca895;
  box-shadow: inset 0 0 0 5px #5130398c, 0 0 2.2rem #ae626232;
}

@media (hover: hover) {
  .research-node:hover { border-color: var(--rose-light); transform: translateY(-2px); }
}

.research-node:focus-visible { border-radius: 50%; }
.study-node-title {
  font: 400 clamp(1.44rem, 2.05vw, 1.9rem)/1.02 var(--display);
  text-wrap: balance;
  max-width: 95%;
}
.study-node-description { max-width: 89%; color: var(--body); font-size: .875rem; line-height: 1.25; }

.study-detail {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: .75rem 2rem;
  min-height: 12rem;
  margin-top: 1rem;
  padding: clamp(1.15rem, 3vw, 2rem);
  align-items: end;
  border: 1px solid var(--edge);
  border-radius: .65rem;
  background: #21171f;
}

.study-venue { color: var(--rose); font-size: .875rem; margin-bottom: .4rem; }
.study-detail h3 { font: 400 clamp(1.55rem, 2.4vw, 2.15rem)/1.13 var(--display); text-wrap: pretty; }
.study-summary { color: var(--body); margin-top: .75rem; }
.study-actions { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem 1.3rem; }
.study-actions .text-link { white-space: nowrap; font-size: .9375rem; }
.study-back { display: none; }

.text-link {
  color: var(--rose-light);
  font-weight: 630;
  text-decoration: underline;
  text-decoration-color: #996b70;
  text-underline-offset: .25em;
  text-decoration-thickness: .07em;
  transition: color .16s ease, text-decoration-color .16s ease;
}
.text-link:hover { color: var(--paper); text-decoration-color: currentColor; }

.section-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1.25rem;
  margin-bottom: 2.125rem;
}

.citation-panel {
  display: grid;
  grid-template-columns: minmax(0, .84fr) minmax(0, 1.36fr);
  align-items: center;
  gap: clamp(1.6rem, 5.4vw, 4.6rem);
  padding: clamp(1.2rem, 3.7vw, 2.8rem);
  background: radial-gradient(ellipse at 7% 5%, #38232f, transparent 82%), #21171f;
  border: 1px solid var(--edge);
  border-radius: .65rem;
}

.citation-summary h3 {
  color: var(--paper);
  font: 400 clamp(2.35rem, 4vw, 3.5rem)/1 var(--display);
}

.citation-summary > p { margin-top: .65rem; color: var(--muted); font-size: .9375rem; }
.citation-summary, .citation-chart { min-width: 0; }

.citation-metrics {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: .55rem;
  border-top: 1px solid #69434f;
  margin-top: 1.45rem;
  padding-top: 1.1rem;
}

.citation-metrics > div { display: grid; align-content: start; gap: .35rem; }
.citation-metrics dt { grid-row: 2; color: var(--body); font-size: .875rem; line-height: 1.35; }
.citation-metrics dd {
  grid-row: 1;
  color: var(--rose-light);
  font: 400 clamp(2.65rem, 4.85vw, 4.15rem)/.9 var(--display);
}

.citation-chart figcaption { color: var(--paper); font-weight: 640; margin-bottom: 2rem; }

.citation-plot {
  --plot-height: clamp(7.25rem, 15vw, 10rem);
  display: grid;
  grid-template-columns: 1.9rem minmax(0, 1fr);
}

.citation-axis {
  display: flex;
  height: var(--plot-height);
  flex-direction: column;
  justify-content: space-between;
  align-items: flex-end;
  padding-right: .6rem;
  color: var(--muted);
  font-size: .8125rem;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}

.citation-axis span { transform: translateY(-50%); }
.citation-axis span:nth-child(2) { transform: none; }
.citation-axis span:last-child { transform: translateY(50%); }

.citation-bars {
  position: relative;
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  min-width: 0;
  padding: 0;
  margin: 0;
  list-style: none;
}

.citation-bars::before {
  content: "";
  position: absolute;
  inset-inline: 0;
  top: 0;
  height: var(--plot-height);
  border-block: 1px solid #62414d;
  background: linear-gradient(#62414d, #62414d) center / 100% 1px no-repeat;
}

.citation-bars li {
  position: relative;
  display: grid;
  grid-template-rows: var(--plot-height) auto;
  justify-items: center;
  min-width: 0;
}

.citation-fill {
  position: relative;
  grid-row: 1;
  grid-column: 1;
  align-self: end;
  width: clamp(.8rem, 56%, 2.75rem);
  height: calc(var(--plot-height) * var(--citations) / 32);
  border-radius: .24rem .24rem 0 0;
  background: linear-gradient(180deg, #f3b6a7, #975468);
}

.citation-value {
  position: absolute;
  bottom: 100%;
  left: 50%;
  transform: translateX(-50%);
  padding-bottom: .3rem;
  color: var(--paper);
  font-size: .875rem;
  font-weight: 640;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}

.citation-year {
  grid-row: 2;
  grid-column: 1;
  padding-top: .48rem;
  color: var(--body);
  font-size: .8125rem;
  white-space: nowrap;
}

.publication-toolbar {
  display: flex;
  justify-content: flex-end;
  margin-block: 1.75rem 1rem;
}

.publication-filters {
  display: flex;
  gap: .45rem;
  flex-wrap: wrap;
}

.publication-filters button {
  cursor: pointer;
  padding: .48rem .825rem;
  min-height: 2.625rem;
  color: var(--body);
  background: transparent;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: .875rem;
  font-weight: 630;
  transition: background-color .16s ease, border-color .16s ease, color .16s ease;
}
.publication-filters button:hover { border-color: var(--rose); color: var(--paper); }
.publication-filters button[aria-pressed="true"] {
  background: #39232b;
  border-color: #795158;
  color: var(--rose-light);
}

.publication-list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.publication {
  position: relative;
  isolation: isolate;
  overflow: clip;
  display: grid;
  grid-template-columns: 10.5rem minmax(0, 1fr) 8rem;
  align-items: center;
  column-gap: 1.6rem;
  min-height: 6.75rem;
  padding: 1.48rem 1.15rem;
  border-bottom: 1px solid var(--line);
}
.publication-number {
  position: absolute;
  z-index: -1;
  left: .75rem;
  bottom: -.6rem;
  color: #402b36;
  font: 400 7.35rem/.91 var(--display);
  pointer-events: none;
}
.publication > div { grid-column: 2; width: min(100%, 47rem); }
.publication h3 { font-size: 1.0625rem; font-weight: 580; line-height: 1.51; text-wrap: pretty; }
.publication p { margin-top: .26rem; color: var(--muted); font-size: .9375rem; }
.publication-date, .publication-status {
  color: var(--rose-light);
  font-size: .875rem;
  font-weight: 650;
  line-height: 1.6;
  align-self: start;
}
.publication-date { font-variant-numeric: tabular-nums; }
.publication-status { color: #e2bac4; }
.publication-link { justify-self: end; font-size: .875rem; padding-block: .08rem; }

.experience-section { background: var(--surface); }

.experience-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  align-items: start;
  gap: 1rem;
  margin-top: 2.35rem;
}

.experience-card {
  padding: clamp(1.1rem, 2.3vw, 1.65rem);
  min-width: 0;
  align-self: stretch;
  border: 1px solid var(--line);
  border-top-color: #68434e;
  border-radius: .65rem;
  background: linear-gradient(158deg, #251923, #1a1419 61%);
}

.timeline-heading {
  color: var(--paper);
  font: 400 clamp(1.72rem, 2.5vw, 2.25rem)/1.06 var(--display);
}

.experience-meta {
  border-top: 1px solid var(--line);
  margin-top: 1.5rem;
  padding-top: 1rem;
}

.experience-meta h4, .training-details summary {
  color: var(--rose-light);
  font-size: 1rem;
  font-weight: 650;
}

.experience-meta p { color: var(--body); margin-top: .4rem; }

.professional-membership h4 {
  color: var(--paper);
  font-size: 1.13rem;
  font-weight: 760;
}
.professional-membership strong { color: var(--rose-light); font-weight: 750; }

.timeline {
  padding: 0;
  margin: 1.5rem 0 0 .3rem;
  list-style: none;
  border-left: 1px solid var(--edge);
}
.timeline > li {
  position: relative;
  padding-left: 1.4rem;
  padding-bottom: 1.55rem;
}
.timeline > li:last-child { padding-bottom: 0; }

.timeline > li::before {
  position: absolute;
  top: .48rem;
  left: -.29rem;
  content: "";
  width: .52rem;
  height: .52rem;
  background: var(--rose);
  border-radius: 50%;
}

.timeline-date { color: var(--rose); font-size: .875rem; font-weight: 620; }
.timeline h4, .timeline h5 { font: 400 2rem/1.1 var(--display); margin: .2rem 0 0; }
.timeline-affiliation { color: var(--body); margin-top: .35rem; }
.timeline-detail, .duties { color: var(--muted); margin-top: .65rem; }
.duties { padding-left: 1.05rem; }
.duties li + li { margin-top: .25rem; }
.duties li::marker { color: var(--rose); }

.about-section {
  position: relative;
  background:
    radial-gradient(ellipse at 89% 16%, #281b25 0%, transparent 65%),
    var(--canvas);
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr minmax(0, .92fr);
  align-items: start;
  gap: clamp(2.5rem, 7.3vw, 6.5rem);
}
.about-intro > p { color: var(--body); max-width: 34rem; margin-top: 1.25rem; }
.about-intro > .text-link { display: inline-block; margin-top: 1rem; }

.about-details { position: relative; min-width: 0; border-top: 1px solid var(--edge); padding-top: 1.3rem; }
.about-details::before {
  content: "";
  position: absolute;
  z-index: 0;
  top: 0;
  right: 0;
  width: 45%;
  height: 8rem;
  pointer-events: none;
  background: radial-gradient(circle, #c28f9a4f 1px, transparent 1.5px) 0 0 / 20px 20px;
  mask-image: radial-gradient(ellipse at 99% 10%, #000 8%, transparent 73%);
}
.about-details h3 { color: var(--paper); font: 400 2.25rem/1.05 var(--display); }
.interest-group h3 { font-size: clamp(2.45rem, 4vw, 2.75rem); }

.interest-list {
  display: grid;
  gap: .85rem;
  margin-top: 1rem;
  padding-inline-start: .95rem;
  border-inline-start: 1px solid #a46677;
}
.interest-list dt { font-size: 1.125rem; font-weight: 640; color: var(--rose-light); }
.interest-list dd { margin-top: .12rem; color: var(--body); }

.skills-group { border-top: 1px solid var(--line); padding-top: 1.15rem; margin-top: 1.35rem; }
.skill-list { display: flex; flex-wrap: wrap; gap: .5rem; list-style: none; margin: .75rem 0 0; padding: 0; }
.skill-list li {
  padding: .3rem .8rem;
  color: var(--rose-light);
  border: 1px solid var(--edge);
  border-radius: 999px;
  background: #291b25;
  font-size: .875rem;
  font-weight: 600;
}

.training-details summary { width: max-content; max-width: 100%; cursor: pointer; }
.training-details summary:hover { color: var(--paper); }
.training-details ul { margin: .5rem 0 0; padding-left: 1.15rem; color: var(--muted); }
.training-details li + li { margin-top: .25rem; }

.research-review .timeline { margin-top: 1rem; }

.contact-section { background: radial-gradient(ellipse at 14% 70%, #2a1922, transparent 67%), var(--canvas); }
.contact-panel {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(15.5rem, auto);
  align-items: center;
  gap: 1.25rem clamp(1.5rem, 5vw, 4rem);
  padding: clamp(1.3rem, 4.25vw, 3.4rem);
  border: 1px solid var(--edge);
  border-radius: .65rem;
  background: radial-gradient(ellipse at 6% 13%, #3a232e, transparent 78%), var(--surface-lift);
}
.contact-panel::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 8% 1.15rem 8% auto;
  width: min(51%, 31rem);
  background: radial-gradient(circle, #b984923d 1px, transparent 1.5px) 0 0 / 22px 22px;
  mask-image: radial-gradient(ellipse at 100% 50%, #000, transparent 76%);
  pointer-events: none;
}
.contact-panel p {
  max-width: 40rem;
  margin-top: 1rem;
  color: var(--body);
  font-size: clamp(1rem, 1.6vw, 1.1875rem);
  text-wrap: pretty;
}

.contact-email {
  display: flex;
  align-items: center;
  gap: .9rem;
  max-width: 100%;
  min-width: 0;
  padding: .95rem 1.15rem;
  border: 1px solid #845561;
  border-radius: .6rem;
  background: linear-gradient(135deg, #422831, #2b1b25);
  color: var(--paper);
  text-decoration: none;
  transition: border-color .16s ease, box-shadow .16s ease;
}

.contact-email:hover, .contact-email:focus-visible {
  border-color: var(--rose);
  box-shadow: 0 .75rem 1.65rem #120b1459;
}

.contact-mail-icon {
  display: grid;
  flex: 0 0 auto;
  place-items: center;
  width: 3rem;
  aspect-ratio: 1;
  border-radius: .7rem;
  background: var(--rose-light);
  color: #8f3548;
}
.contact-mail-icon::before, .contact-mail-icon::after {
  content: "";
  grid-area: 1 / 1;
  width: 1.65rem;
  height: 1.1rem;
}
.contact-mail-icon::before { border: 2px solid currentColor; border-radius: .24rem; }
.contact-mail-icon::after {
  background: currentColor;
  clip-path: polygon(3% 9%, 50% 57%, 97% 9%, 97% 23%, 50% 73%, 3% 23%);
}

.contact-email-copy { display: grid; gap: .1rem; min-width: 0; line-height: 1.35; }
.contact-email-label { color: var(--rose-light); font-size: .875rem; font-weight: 650; }
.contact-email-address { font-size: 1rem; font-weight: 600; overflow-wrap: anywhere; }

.site-footer { background: #100d11; }
.footer-inner, .footer-nav { display: flex; align-items: center; flex-wrap: wrap; gap: .5rem 1.75rem; }
.footer-inner { justify-content: space-between; min-height: 6.5rem; padding-block: 1.15rem; }

@media (max-width: 68rem) {
  .shell { width: calc(100% - 5rem); }
  .hero-inner { min-height: 36rem; }
  .hero-name { --hero-title-size: clamp(5.5rem, 10.2vw, 7.5rem); }
  .site-nav { gap: clamp(.85rem, 2vw, 1.75rem); }
  .experience-card { padding: 1.1rem; }
  .study-node-description { max-width: 93%; }
}

@media (max-width: 53rem) {
  .research-map {
    --map-padding: .85rem;
    --orbit-gap: .65rem;
    --node-size: min(12.25rem, calc((100vw - 3.6rem) / 2));
    --core-height: clamp(9.8rem, 34vw, 13.5rem);
    --core-top: calc(var(--map-padding) + var(--node-size) + var(--orbit-gap) + var(--core-height) / 2);
    height: auto;
    padding: var(--map-padding) .3rem;
  }
  .research-nodes {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-template-rows: var(--node-size) var(--core-height) var(--node-size) var(--node-size);
    gap: var(--orbit-gap) .42rem;
    justify-items: center;
  }
  .research-nodes > li { position: relative; top: auto; left: auto; transform: none; }
  .research-nodes > li:nth-child(-n+2) { grid-row: 1; }
  .research-nodes > li:nth-child(n+3):nth-child(-n+4) { grid-row: 3; }
  .research-nodes > li:nth-child(n+5) { grid-row: 4; }
  .study-node-title { font-size: clamp(1.28rem, 5vw, 1.8rem); }
  .research-heart { top: var(--core-top); width: calc(var(--core-height) + 1.25rem); }
  .research-orbits { top: var(--core-top); width: min(68%, 16rem); }
  .study-back { display: inline; }
  .study-detail { grid-template-columns: minmax(0, 1fr); align-items: start; min-height: 0; }
  .study-actions .text-link { display: inline-flex; align-items: center; min-height: 2.75rem; }
  .experience-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .experience-card:last-child { grid-column: 1 / -1; }
}

@media (max-width: 49rem) {
  :root { --header-height: 4.25rem; }
  .shell { width: calc(100% - 3rem); }
  .header-inner { grid-template-columns: minmax(0, 1fr) auto; grid-template-rows: var(--header-height); gap: 0; }
  .header-orcid { display: none; }
  .menu-toggle { display: inline-flex; gap: .55rem; min-height: 2.75rem; }
  .menu-icon {
    position: relative;
    display: inline-block;
    width: 1rem;
    height: .65rem;
  }
  .menu-icon::before, .menu-icon::after {
    position: absolute;
    inset-inline: 0;
    content: "";
    height: 1px;
    background: currentColor;
    transition: transform .16s ease;
  }
  .menu-icon::before { top: .15rem; }
  .menu-icon::after { bottom: .15rem; }
  .menu-toggle[aria-expanded="true"] .menu-icon::before { transform: translateY(.16rem) rotate(45deg); }
  .menu-toggle[aria-expanded="true"] .menu-icon::after { transform: translateY(-.16rem) rotate(-45deg); }
  .site-nav {
    grid-column: 1 / -1;
    flex-wrap: wrap;
    gap: 0 1.5rem;
    padding-bottom: .6rem;
  }
  .site-nav[data-collapsible]:not([data-open]) { display: none; }
  .site-nav[data-open] + .header-orcid,
  .site-nav:not([data-collapsible]) + .header-orcid {
    display: inline-flex;
    grid-column: 1 / -1;
    justify-self: start;
    min-height: 2.75rem;
    margin-bottom: .75rem;
  }

  .hero-inner { min-height: 33rem; }
  .hero-name { --hero-title-size: clamp(5rem, 12vw, 6.5rem); }
  .hero-atmosphere::before { right: -5rem; width: min(93vw, 45rem); opacity: .38; }
  .hero-intro { max-width: 21.5rem; }
  .about-grid { grid-template-columns: 1fr; }
  .about-intro > .text-link { display: inline-flex; align-items: center; min-height: 2.75rem; }
  .training-details summary { padding-block: .55rem; }
  .publication { grid-template-columns: 7.35rem minmax(0, 1fr); align-items: start; row-gap: .45rem; }
  .publication-link { grid-column: 2; justify-self: start; display: inline-flex; align-items: center; min-height: 2.75rem; }
  .publication-filters button { min-height: 2.75rem; }
}

@media (max-width: 43rem) {
  .hero-inner { min-height: 0; }
  .hero-copy { padding-block: 3.1rem 3.65rem; }
  .citation-panel { grid-template-columns: minmax(0, 1fr); }
  .citation-summary h3 { font-size: 2.85rem; }
  .citation-metrics { margin-top: 1.15rem; padding-top: .95rem; }
  .publication-toolbar { justify-content: flex-start; }
  .contact-panel { grid-template-columns: minmax(0, 1fr); }
  .contact-email { justify-self: start; padding: .85rem .95rem; }
}

@media (max-width: 37rem) {
  .shell { width: calc(100% - 2.5rem); }
  .hero-name { --hero-title-size: clamp(3.5rem, 17.7vw, 6rem); }
  .hero-portrait { width: clamp(4.8rem, 23vw, 7.2rem); }
  .hero-role { align-items: flex-start; max-width: 19.5rem; margin-bottom: 1.15rem; }
  .hero-role::before { width: 1.25rem; margin-top: .6rem; }
  .hero-intro { margin-top: 1.35rem; max-width: 18rem; font-size: clamp(1.85rem, 6.7vw, 2.35rem); }
  .hero-actions { margin-top: 1.4rem; gap: .55rem; }
  .button { padding-inline: .85rem; }
  .hero-atmosphere::before { top: 39%; right: -34vw; width: 103vw; opacity: .34; }

  .section { padding-block: 3.5rem; }
  .section h2 { font-size: clamp(3.15rem, 11.5vw, 4.4rem); }
  .experience-grid { margin-top: 1.65rem; grid-template-columns: 1fr; }
  .section-heading { align-items: flex-start; flex-direction: column; margin-bottom: 1.6rem; }
  .publication { grid-template-columns: minmax(0, 1fr); gap: .35rem; min-height: 6.25rem; padding: 1.15rem .45rem 1.15rem .7rem; }
  .publication > div, .publication-link { grid-column: 1; }
  .publication h3 { font-size: 1rem; }
  .publication-number { left: auto; right: .25rem; bottom: -.25rem; font-size: 6.25rem; color: #362830; }
  .contact-email { gap: .7rem; }
  .contact-mail-icon { width: 2.6rem; }
  .contact-email-address { font-size: .9375rem; }
  .footer-nav { gap: .4rem 1.5rem; }
}

@media (max-width: 24rem) {
  .hero-actions { display: grid; grid-template-columns: minmax(0, 1fr); }
  .research-map { margin-inline: -.45rem; --node-size: min(10.25rem, calc((100vw - 2.9rem) / 2)); }
  .research-node { gap: .35rem; padding: .55rem .42rem; }
  .study-node-title { max-width: 100%; font-size: clamp(1.15rem, 5.34vw, 1.28rem); }
  .study-node-description {
    max-width: 96%;
    font-size: clamp(.8125rem, 3.65vw, .875rem);
    line-height: 1.17;
    text-wrap: balance;
  }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; }
}
