:root {
  --bg: #f5f1e8;
  --bg-soft: #fbf8f2;
  --panel: rgba(255, 255, 255, 0.88);
  --panel-strong: rgba(255, 255, 255, 0.95);
  --ink: #1b1b1e;
  --ink-muted: #4a4f57;
  --line: rgba(27, 27, 30, 0.1);
  --line-strong: rgba(27, 27, 30, 0.16);
  --accent: #b31b1b;
  --accent-deep: #7f1010;
  --accent-soft: rgba(179, 27, 27, 0.1);
  --accent-2: #0f766e;
  --shadow-1: 0 14px 40px rgba(22, 24, 28, 0.08);
  --shadow-2: 0 22px 55px rgba(22, 24, 28, 0.12);
  --radius-xl: 24px;
  --radius-lg: 18px;
  --radius-md: 14px;
  --radius-sm: 10px;
  --site-max: 1180px;
  --header-h: 78px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: "Manrope", "Segoe UI", sans-serif;
  color: var(--ink);
  background:
    radial-gradient(circle at 12% 10%, rgba(179, 27, 27, 0.14), transparent 45%),
    radial-gradient(circle at 92% 18%, rgba(15, 118, 110, 0.12), transparent 38%),
    radial-gradient(circle at 50% 120%, rgba(40, 60, 130, 0.06), transparent 46%),
    var(--bg);
  line-height: 1.55;
}

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

a {
  color: var(--accent-deep);
  text-decoration-thickness: 0.08em;
  text-underline-offset: 0.18em;
}

a:hover {
  color: var(--accent);
}

.site-bg {
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(27, 27, 30, 0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(27, 27, 30, 0.025) 1px, transparent 1px);
  background-size: 28px 28px;
  mask-image: radial-gradient(circle at center, black 35%, transparent 88%);
  opacity: 0.45;
  z-index: -1;
}

.skip-link {
  position: absolute;
  left: 12px;
  top: -42px;
  z-index: 1000;
  background: #111;
  color: #fff;
  padding: 8px 12px;
  border-radius: 8px;
  text-decoration: none;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(12px);
  background: linear-gradient(
    to bottom,
    rgba(245, 241, 232, 0.92),
    rgba(245, 241, 232, 0.72)
  );
  border-bottom: 1px solid var(--line);
}

.site-header__inner {
  max-width: var(--site-max);
  margin: 0 auto;
  min-height: var(--header-h);
  padding: 14px 20px;
  display: flex;
  align-items: center;
  gap: 16px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: inherit;
  text-decoration: none;
  min-width: 0;
}

.brand__mark {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  background:
    linear-gradient(145deg, rgba(179, 27, 27, 0.18), rgba(179, 27, 27, 0.04)),
    rgba(255, 255, 255, 0.7);
  border: 1px solid rgba(179, 27, 27, 0.18);
  color: var(--accent-deep);
  font-weight: 800;
  letter-spacing: 0.02em;
}

.brand__text {
  display: flex;
  flex-direction: column;
  line-height: 1.05;
}

.brand__name {
  font-weight: 800;
  font-size: 0.98rem;
}

.brand__sub {
  font-size: 0.72rem;
  color: var(--ink-muted);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.nav-toggle {
  margin-left: auto;
  border: 1px solid var(--line-strong);
  background: rgba(255, 255, 255, 0.75);
  border-radius: 999px;
  padding: 8px 12px;
  font: inherit;
  color: inherit;
  display: none;
  align-items: center;
  gap: 8px;
  cursor: pointer;
}

.nav-toggle::before,
.nav-toggle::after {
  content: "";
  width: 14px;
  height: 2px;
  background: currentColor;
  display: block;
  border-radius: 999px;
  box-shadow: 0 4px 0 currentColor, 0 -4px 0 currentColor;
}

.nav-toggle__label {
  font-size: 0.9rem;
  font-weight: 700;
}

.site-nav {
  margin-left: auto;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
}

.nav-link {
  display: inline-flex;
  align-items: center;
  min-height: 38px;
  padding: 0 12px;
  border-radius: 999px;
  text-decoration: none;
  color: var(--ink-muted);
  font-weight: 700;
  font-size: 0.92rem;
  transition: background-color 180ms ease, color 180ms ease, transform 180ms ease;
}

.nav-link:hover {
  background: rgba(27, 27, 30, 0.05);
  color: var(--ink);
  transform: translateY(-1px);
}

.nav-link.is-active {
  background: linear-gradient(180deg, rgba(179, 27, 27, 0.14), rgba(179, 27, 27, 0.08));
  color: var(--accent-deep);
  box-shadow: inset 0 0 0 1px rgba(179, 27, 27, 0.14);
}

.site-shell {
  max-width: var(--site-max);
  margin: 0 auto;
  padding: 24px 20px 32px;
}

#main-content {
  display: grid;
  gap: 18px;
}

.eyebrow {
  margin: 0 0 8px;
  font-size: 0.8rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.09em;
  color: var(--accent-deep);
}

.hero {
  display: grid;
  grid-template-columns: minmax(240px, 320px) minmax(0, 1fr);
  gap: 18px;
  align-items: stretch;
}

.hero__photo-panel,
.hero__content-panel {
  border-radius: var(--radius-xl);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.92), rgba(255, 255, 255, 0.86));
  border: 1px solid var(--line);
  box-shadow: var(--shadow-1);
}

.hero__photo-panel {
  padding: 18px;
  display: grid;
  align-content: start;
  gap: 12px;
  background:
    radial-gradient(circle at 10% 12%, rgba(179, 27, 27, 0.12), transparent 55%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.94), rgba(255, 255, 255, 0.86));
}

.photo-frame {
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid rgba(27, 27, 30, 0.08);
  box-shadow: 0 12px 28px rgba(20, 20, 22, 0.12);
}

.photo-frame img {
  width: 100%;
  height: auto;
  aspect-ratio: 340 / 454;
  object-fit: cover;
}

.photo-caption {
  margin: 0;
  color: var(--ink-muted);
  font-size: 0.84rem;
}

.photo-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.photo-link {
  display: inline-grid;
  place-items: center;
  align-items: center;
  width: 42px;
  height: 42px;
  min-height: 42px;
  padding: 0;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.84);
  color: var(--ink);
  text-decoration: none;
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}

.photo-link:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 18px rgba(20, 20, 22, 0.08);
  border-color: rgba(179, 27, 27, 0.2);
  color: var(--accent-deep);
}

.photo-link__icon {
  width: 18px;
  height: 18px;
  display: grid;
  place-items: center;
  color: var(--accent-deep);
  flex: 0 0 auto;
}

.photo-link__icon svg {
  width: 18px;
  height: 18px;
  display: block;
}

.photo-office {
  margin: 0;
  color: var(--ink-muted);
  font-size: 0.9rem;
  font-weight: 600;
}

.hero__content-panel {
  padding: 24px;
  display: grid;
  align-content: start;
  gap: 14px;
  background:
    radial-gradient(circle at 100% 0%, rgba(15, 118, 110, 0.11), transparent 42%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.94), rgba(255, 255, 255, 0.88));
}

.hero__content-panel h1 {
  margin: 0;
  font-family: "Fraunces", Georgia, serif;
  font-size: clamp(2rem, 3.4vw, 3rem);
  line-height: 0.98;
  letter-spacing: -0.02em;
}

.hero-meta {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 10px;
}

.hero-meta-switch {
  margin: 0;
  display: grid;
  gap: 4px;
  padding-top: 2px;
}

.hero-meta-variant {
  margin: 0;
}

.hero-meta-variant--stack,
.hero-meta-variant--inline {
  display: none;
}

.hero-meta-switch--stack .hero-meta-variant--stack {
  display: grid;
  gap: 7px;
}

.hero-meta-switch--inline .hero-meta-variant--inline {
  display: flex;
}

.hero-meta-stack__role {
  margin: 0;
  color: var(--ink);
  font-weight: 800;
  font-size: 1.16rem;
  line-height: 1.08;
  letter-spacing: -0.015em;
}

.hero-meta-stack__affiliation {
  margin: 0;
  color: var(--ink);
  font-weight: 700;
  font-size: 0.95rem;
  line-height: 1.28;
}

.hero-meta-stack__affiliation a {
  color: var(--ink);
  text-decoration: none;
  border-bottom: 0;
  padding-bottom: 0;
}

.hero-meta-stack__affiliation a:hover {
  color: var(--ink);
}

.hero-meta-inline__item {
  color: var(--ink);
  font-weight: 700;
  text-decoration: none;
}

a.hero-meta-inline__item:hover {
  color: var(--accent-deep);
  text-decoration: underline;
  text-decoration-color: rgba(179, 27, 27, 0.45);
  text-underline-offset: 0.12em;
}

.hero-meta-inline__sep {
  color: var(--ink);
  font-weight: 700;
}

.hero-meta-variant--inline {
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  min-height: 1.55rem;
  font-size: 0.97rem;
}

.hero-line {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--ink-muted);
  font-weight: 600;
}

.hero-line::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: linear-gradient(180deg, var(--accent), var(--accent-deep));
  flex: 0 0 auto;
}

.hero-summary {
  margin-top: 0;
  color: var(--ink);
  padding-top: 8px;
}

.hero-summary p {
  margin: 0;
  max-width: none;
  line-height: 1.5;
  text-align: justify;
  text-justify: inter-word;
}

.hero-summary p + p {
  margin-top: 12px;
}

.hero-actions {
  margin-top: 20px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 0 14px;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 800;
  transition: transform 180ms ease, box-shadow 180ms ease, background-color 180ms ease;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn--primary {
  color: #fff;
  background: linear-gradient(180deg, #c92525, var(--accent));
  box-shadow: 0 10px 20px rgba(179, 27, 27, 0.18);
}

.btn--primary:hover {
  color: #fff;
  box-shadow: 0 14px 22px rgba(179, 27, 27, 0.22);
}

.btn--ghost {
  color: var(--ink);
  background: rgba(255, 255, 255, 0.7);
  border: 1px solid var(--line-strong);
}

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

.quick-card {
  display: grid;
  gap: 4px;
  align-content: start;
  min-height: 148px;
  padding: 18px;
  border-radius: var(--radius-lg);
  text-decoration: none;
  color: inherit;
  border: 1px solid var(--line);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.92), rgba(255, 255, 255, 0.85));
  box-shadow: var(--shadow-1);
  transition: transform 220ms ease, box-shadow 220ms ease, border-color 220ms ease;
}

.quick-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-2);
  border-color: rgba(179, 27, 27, 0.18);
}

.quick-card:nth-child(2) {
  background:
    radial-gradient(circle at 95% 10%, rgba(179, 27, 27, 0.12), transparent 42%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.93), rgba(255, 255, 255, 0.86));
}

.quick-card:nth-child(3) {
  background:
    radial-gradient(circle at 100% 0%, rgba(15, 118, 110, 0.12), transparent 45%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.93), rgba(255, 255, 255, 0.86));
}

.quick-card__label {
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-muted);
}

.quick-card strong {
  font-family: "Fraunces", Georgia, serif;
  font-size: 1.15rem;
  line-height: 1.1;
}

.quick-card p {
  margin: 2px 0 0;
  color: var(--ink-muted);
  font-size: 0.92rem;
}

.page-banner {
  border-radius: var(--radius-xl);
  padding: 22px 24px;
  border: 1px solid var(--line);
  box-shadow: var(--shadow-1);
  background:
    radial-gradient(circle at 88% 0%, rgba(179, 27, 27, 0.12), transparent 50%),
    radial-gradient(circle at 0% 100%, rgba(15, 118, 110, 0.09), transparent 45%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.95), rgba(255, 255, 255, 0.88));
}

.page-banner h1 {
  margin: 0;
  font-family: "Fraunces", Georgia, serif;
  font-size: clamp(1.7rem, 3vw, 2.45rem);
  line-height: 1;
  letter-spacing: -0.02em;
}

.page-banner__lead {
  margin: 10px 0 0;
  color: var(--ink-muted);
  max-width: 72ch;
}

.page-title {
  display: grid;
  gap: 8px;
  padding: 4px 2px 2px;
  margin-bottom: 14px;
}

.page-title h1 {
  margin: 0;
  font-family: "Fraunces", Georgia, serif;
  font-size: clamp(1.9rem, 3.2vw, 2.8rem);
  line-height: 0.98;
  letter-spacing: -0.025em;
}

.page-title::after {
  content: "";
  width: min(140px, 28vw);
  height: 4px;
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(179, 27, 27, 0.95), rgba(179, 27, 27, 0.18));
  margin-top: 2px;
}

.page-interests #main-content {
  gap: 14px;
}

.interests-intro {
  padding: 4px 2px 2px;
  display: grid;
  gap: 8px;
}

.interests-intro__label {
  margin: 0;
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent-deep);
}

.interests-intro__text {
  margin: 0;
  color: var(--ink);
  line-height: 1.58;
  font-size: 1rem;
  padding-left: 14px;
  border-left: 3px solid rgba(179, 27, 27, 0.28);
}

.page-index .prose h2#research-interests ~ p,
.page-index .prose h2#research-interests ~ ul li > p,
.page-bio .content-card .prose p,
.page-interests .interests-intro__text,
.page-interests .content-card--interest-topic .prose p,
.page-interests_prime .interests-intro__text,
.page-interests_prime .interest-prime-tile__body.prose p {
  text-align: justify;
  text-justify: inter-word;
}

.interests-topics {
  display: grid;
  gap: 14px;
}

.page-interests .content-card--interest-topic {
  border-radius: 20px;
  background:
    radial-gradient(circle at 100% 0%, rgba(179, 27, 27, 0.07), transparent 38%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.95), rgba(255, 255, 255, 0.9));
}

.page-interests .content-card--interest-topic .prose {
  padding: 20px 22px;
}

.page-interests .content-card--interest-topic .prose h2 {
  margin-bottom: 10px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--line);
}

.page-interests .content-card--interest-topic .prose p {
  margin-bottom: 0;
}

.page-interests_prime #main-content {
  gap: 14px;
}

.page-interests_prime .interests-intro {
  background: transparent;
  border: 0;
  border-radius: 0;
  box-shadow: none;
}

.interests-prime-topics {
  display: grid;
  gap: 16px;
}

.page-interests_prime .content-card--interest-prime {
  border-radius: 22px;
  background:
    radial-gradient(circle at 100% 0%, rgba(179, 27, 27, 0.07), transparent 36%),
    radial-gradient(circle at 0% 100%, rgba(15, 118, 110, 0.05), transparent 42%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.95), rgba(255, 255, 255, 0.9));
}

.interest-prime-tile {
  display: grid;
  grid-template-columns: minmax(210px, 250px) minmax(0, 1fr);
  align-items: stretch;
}

.interest-prime-tile--text-only {
  grid-template-columns: 1fr;
}

.interest-prime-tile__visual {
  position: relative;
  display: grid;
  place-items: center;
  padding: 14px;
  border-right: 1px solid rgba(27, 27, 30, 0.07);
  background:
    radial-gradient(circle at 20% 20%, rgba(179, 27, 27, 0.06), transparent 48%),
    radial-gradient(circle at 80% 80%, rgba(15, 118, 110, 0.07), transparent 52%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.9), rgba(247, 248, 250, 0.82));
  min-height: 164px;
}

.interest-prime-tile__visual::after {
  content: "";
  position: absolute;
  inset: 10px;
  border-radius: 16px;
  border: 1px solid rgba(27, 27, 30, 0.05);
  pointer-events: none;
}

.interest-prime-tile__body.prose {
  padding: 18px 20px;
}

.page-interests_prime .interest-prime-tile__body.prose h2 {
  margin-bottom: 10px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--line);
}

.page-interests_prime .interest-prime-tile__body.prose p {
  margin-bottom: 0;
  line-height: 1.58;
  text-align: justify !important;
  text-justify: inter-word;
  -webkit-hyphens: auto;
  hyphens: auto;
}

.page-interests_prime .interests-intro__text {
  text-align: justify !important;
  text-justify: inter-word;
  -webkit-hyphens: auto;
  hyphens: auto;
}

.interest-prime-viz {
  width: 100%;
  max-width: 240px;
  height: auto;
  display: block;
  color: var(--accent-deep);
}

.interest-prime-viz .viz-grid {
  fill: rgba(255, 255, 255, 0.42);
  stroke: rgba(27, 27, 30, 0.08);
  stroke-width: 1;
}

.interest-prime-viz .viz-fill-soft {
  fill: rgba(179, 27, 27, 0.12);
  stroke: rgba(179, 27, 27, 0.18);
  stroke-width: 1.2;
}

.interest-prime-viz .viz-fill-soft-alt {
  fill: rgba(15, 118, 110, 0.12);
  stroke: rgba(15, 118, 110, 0.18);
  stroke-width: 1.2;
}

.interest-prime-viz .viz-path-flow,
.interest-prime-viz .viz-correspondence,
.interest-prime-viz .viz-wave,
.interest-prime-viz .viz-scan {
  fill: none;
  stroke-linecap: round;
}

.interest-prime-viz .viz-path-flow {
  stroke: rgba(179, 27, 27, 0.72);
  stroke-width: 2.2;
}

.interest-prime-viz .viz-correspondence {
  stroke: rgba(15, 118, 110, 0.7);
  stroke-width: 1.8;
  stroke-dasharray: 5 5;
}

.interest-prime-viz .viz-wave {
  stroke: rgba(15, 118, 110, 0.68);
  stroke-width: 2.1;
  stroke-dasharray: 6 5;
}

.interest-prime-viz .viz-scan {
  stroke: rgba(179, 27, 27, 0.52);
  stroke-width: 2;
  stroke-dasharray: 7 7;
}

.interest-prime-viz .viz-arrow {
  fill: none;
  stroke: rgba(179, 27, 27, 0.65);
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.interest-prime-viz .viz-node {
  fill: rgba(179, 27, 27, 0.86);
}

.interest-prime-viz .viz-node-alt {
  fill: rgba(15, 118, 110, 0.9);
}

.interest-prime-viz .viz-graph-edge,
.interest-prime-viz .viz-graph-edge-alt {
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.interest-prime-viz .viz-graph-edge {
  stroke: rgba(179, 27, 27, 0.4);
  stroke-width: 1.7;
}

.interest-prime-viz .viz-graph-edge-alt {
  stroke: rgba(15, 118, 110, 0.42);
  stroke-width: 1.7;
}

.interest-prime-viz .viz-ring {
  fill: none;
  stroke: rgba(179, 27, 27, 0.2);
  stroke-width: 1.4;
  stroke-dasharray: 3 5;
  transform-origin: center;
}

.interest-prime-viz .viz-ring-soft {
  fill: none;
  stroke: rgba(15, 118, 110, 0.2);
  stroke-width: 1.5;
  transform-origin: center;
}

.interest-prime-viz .viz-band {
  fill: rgba(15, 118, 110, 0.12);
  stroke: rgba(15, 118, 110, 0.14);
  stroke-width: 1.1;
}

.interest-prime-viz .viz-outlier {
  fill: rgba(179, 27, 27, 0.92);
  opacity: 0.95;
}

.interest-prime-viz .viz-shield {
  fill: rgba(255, 255, 255, 0.55);
  stroke: rgba(179, 27, 27, 0.52);
  stroke-width: 1.8;
  stroke-linejoin: round;
}

.interest-prime-viz .viz-threshold {
  fill: none;
  stroke: rgba(179, 27, 27, 0.44);
  stroke-width: 1.8;
  stroke-linecap: round;
}

.interest-prime-viz .viz-bars .viz-bar,
.interest-prime-viz .viz-bar {
  fill: rgba(179, 27, 27, 0.16);
  stroke: rgba(179, 27, 27, 0.26);
  stroke-width: 1;
}

.interest-prime-viz .viz-bars .viz-bar:nth-child(even) {
  fill: rgba(15, 118, 110, 0.14);
  stroke: rgba(15, 118, 110, 0.22);
}

.interest-prime-viz .viz-block {
  fill: rgba(255, 255, 255, 0.65);
  stroke: rgba(27, 27, 30, 0.11);
  stroke-width: 1.2;
}

.interest-prime-viz .viz-heat {
  stroke-width: 0;
}

.interest-prime-viz .viz-heat-1 {
  fill: rgba(15, 118, 110, 0.22);
}

.interest-prime-viz .viz-heat-2 {
  fill: rgba(179, 27, 27, 0.22);
}

.interest-prime-viz .viz-heat-3 {
  fill: rgba(179, 27, 27, 0.42);
}

.interest-prime-viz .viz-heat-4 {
  fill: rgba(179, 27, 27, 0.66);
}

.interest-prime-viz .viz-guard {
  fill: rgba(255, 255, 255, 0.58);
  stroke: rgba(15, 118, 110, 0.55);
  stroke-width: 1.7;
  stroke-linejoin: round;
}

.interest-prime-viz .viz-quantum-orbit {
  fill: none;
  stroke: rgba(179, 27, 27, 0.42);
  stroke-width: 1.5;
}

.interest-prime-viz .viz-quantum-core {
  fill: rgba(15, 118, 110, 0.9);
}

.viz-rotate-slow {
  animation: viz-rotate-slow 20s linear infinite;
  transform-origin: center;
}

.viz-drift-y {
  animation: viz-drift-y 4.5s ease-in-out infinite;
}

.viz-drift-y-alt {
  animation: viz-drift-y 5.5s ease-in-out infinite reverse;
}

.viz-dash-shift {
  animation: viz-dash-shift 10s linear infinite;
}

.viz-pulse {
  animation: viz-pulse 3.6s ease-in-out infinite;
}

@keyframes viz-rotate-slow {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

@keyframes viz-drift-y {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-4px);
  }
}

@keyframes viz-dash-shift {
  from {
    stroke-dashoffset: 0;
  }
  to {
    stroke-dashoffset: -44;
  }
}

@keyframes viz-pulse {
  0%,
  100% {
    opacity: 0.95;
  }
  50% {
    opacity: 0.55;
  }
}

.content-card {
  border-radius: var(--radius-xl);
  border: 1px solid var(--line);
  background: var(--panel);
  box-shadow: var(--shadow-1);
  overflow: clip;
}

.content-card--bibliography {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.94), rgba(255, 255, 255, 0.89));
}

.prose {
  padding: 22px 24px;
}

.prose > :first-child {
  margin-top: 0;
}

.prose > :last-child {
  margin-bottom: 0;
}

.prose h2 {
  margin: 0 0 14px;
  padding-top: 2px;
  font-family: "Fraunces", Georgia, serif;
  font-size: 1.35rem;
  line-height: 1.15;
  letter-spacing: -0.01em;
  color: var(--ink);
}

.prose h3 {
  margin: 18px 0 8px;
  font-size: 1.05rem;
  line-height: 1.2;
}

.prose p {
  margin: 0 0 12px;
  color: var(--ink);
}

.prose p + h2 {
  margin-top: 16px;
}

.prose ul,
.prose ol {
  margin: 8px 0 12px;
  padding-left: 1.2rem;
}

.prose li {
  margin: 6px 0;
}

.prose li > p {
  margin: 0;
}

.prose b {
  color: var(--ink);
}

.prose code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.9em;
  background: rgba(27, 27, 30, 0.05);
  padding: 0.12em 0.35em;
  border-radius: 6px;
}

.bibliography p {
  margin-bottom: 14px;
}

.bibliography .citation {
  position: relative;
  padding-left: 14px;
  color: #23262b;
}

.bibliography .citation::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.35em;
  width: 3px;
  height: calc(100% - 0.7em);
  border-radius: 999px;
  background: linear-gradient(180deg, rgba(179, 27, 27, 0.5), rgba(179, 27, 27, 0.12));
}

.page-publications .content-card,
.page-talks .content-card {
  border-radius: 18px;
}

.page-publications .prose h2,
.page-talks .prose h2 {
  margin-bottom: 16px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--line);
}

.page-teaching .prose .teaching-course {
  margin-bottom: 12px;
  line-height: 1.45;
}

.page-teaching .prose .teaching-course__title {
  color: var(--ink);
  font-weight: 400;
  letter-spacing: normal;
}

.page-teaching .prose .teaching-course__offerings {
  color: var(--ink);
  font-weight: 400;
}

.page-teaching .prose .teaching-course__offerings a {
  color: inherit;
}

.page-teaching .prose .teaching-course__offerings a:hover {
  color: var(--accent-deep);
}

.infoblock {
  margin-top: 12px;
}

.page-index .infoblock {
  margin-top: 18px;
}

.infoblock .blockcontent {
  border-radius: var(--radius-md);
  border: 1px solid rgba(15, 118, 110, 0.2);
  background: linear-gradient(180deg, rgba(15, 118, 110, 0.06), rgba(15, 118, 110, 0.03));
  padding: 12px 14px;
}

.infoblock .blockcontent p {
  margin: 0;
  color: #1f3d3a;
}

.site-footer {
  border-top: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.52);
  backdrop-filter: blur(8px);
}

.site-footer__inner {
  max-width: var(--site-max);
  margin: 0 auto;
  padding: 18px 20px 24px;
  color: var(--ink-muted);
}

.site-footer__inner p {
  margin: 0;
}

.site-footer__note {
  margin-top: 6px !important;
  font-size: 0.9rem;
}

[data-reveal] {
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 420ms ease, transform 420ms ease;
}

[data-reveal].is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 980px) {
  .interest-prime-tile {
    grid-template-columns: 1fr;
  }

  .interest-prime-tile__visual {
    border-right: 0;
    border-bottom: 1px solid rgba(27, 27, 30, 0.07);
    min-height: 148px;
  }

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

  .hero__photo-panel {
    grid-template-columns: minmax(0, 320px) 1fr;
    align-items: start;
  }

  .photo-caption {
    align-self: center;
  }

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

@media (max-width: 840px) {
  .nav-toggle {
    display: inline-flex;
  }

  .site-nav {
    position: absolute;
    right: 20px;
    top: calc(100% - 4px);
    width: min(320px, calc(100vw - 40px));
    padding: 10px;
    border-radius: 16px;
    border: 1px solid var(--line-strong);
    background: rgba(255, 255, 255, 0.96);
    box-shadow: var(--shadow-2);
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 4px;
  }

  .site-header.is-nav-open .site-nav {
    display: flex;
  }

  .site-nav .nav-link {
    min-height: 42px;
    padding: 0 12px;
    border-radius: 10px;
  }
}

@media (max-width: 640px) {
  .hero-meta-stack__role {
    font-size: 1.08rem;
  }

  .hero-meta-stack__affiliation {
    font-size: 0.92rem;
  }

  .hero-meta-variant--inline {
    gap: 4px;
    font-size: 0.92rem;
  }

  .interest-prime-tile__visual {
    padding: 12px;
    min-height: 132px;
  }

  .interest-prime-tile__body.prose {
    padding: 16px;
  }

  .site-header__inner,
  .site-shell,
  .site-footer__inner {
    padding-left: 14px;
    padding-right: 14px;
  }

  .hero__content-panel,
  .hero__photo-panel,
  .page-banner,
  .prose {
    padding: 16px;
  }

  .brand__sub {
    display: none;
  }

  .hero__photo-panel {
    grid-template-columns: 1fr;
  }

  .photo-frame {
    max-width: 320px;
  }

  .hero-actions {
    gap: 8px;
  }

  .btn {
    width: 100%;
    justify-content: center;
  }
}

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

  * {
    animation-duration: 1ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 1ms !important;
  }

  [data-reveal] {
    opacity: 1;
    transform: none;
  }
}
