/* =========================================================
   DESIGN SYSTEM
========================================================= */

:root {
  --font-xs: 0.82rem;
  --font-sm: 0.92rem;
  --font-base: 1.05rem;
  --font-lg: 1.2rem;
  --font-xl: 1.5rem;
  --font-2xl: 2rem;
  --font-3xl: clamp(2.5rem, 5vw, 3.5rem);
  
  --wine: #631a37;
  --wine-dark: #451126;
  --wine-light: #8d4965;

  --pink: #c78ca3;
  --pink-light: #ead8e0;
  --pink-pale: #f8f2f5;

  --ink: #292329;
  --muted: #82747c;
  --line: #eadfe4;
  --paper: #ffffff;

  --heading-font: "Playfair Display", Georgia, serif;
  --body-font: "Inter", Arial, sans-serif;

  --content-width: 1120px;
  --page-padding: 48px;
}

/* =========================================================
   RESET AND BASE
========================================================= */

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;

  background: var(--paper);
  color: var(--ink);

  font-family: var(--body-font);
  font-size: 16px;
  line-height: 1.75;

  -webkit-font-smoothing: antialiased;
}

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

a {
  color: inherit;
  text-decoration: none;
}

button,
input {
  font: inherit;
}

::selection {
  background: var(--pink-light);
  color: var(--wine-dark);
}

.container {
  width: min(
    calc(100% - var(--page-padding) * 2),
    var(--content-width)
  );
  margin-inline: auto;
}

.page-container {
  flex: 1;
  padding-top: 72px;
  padding-bottom: 100px;
}

.preserve-lines {
  white-space: pre-line;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 10px;
  z-index: 100;
  padding: 10px 16px;
  background: var(--wine);
  color: white;
}

.skip-link:focus {
  left: 10px;
}

/* =========================================================
   HEADER AND NAVIGATION
========================================================= */

#site-header {
  width: 100%;
}

.header-inner {
  min-height: 100px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;

  border-bottom: 1px solid var(--line);
}

.brand {
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
}

.brand-logo {
  width: auto;
  height: 48px;
  max-width: 120px;
  object-fit: contain;
}

.brand-fallback {
  display: grid;
  place-items: center;

  width: 42px;
  height: 42px;

  border: 1px solid var(--wine);
  border-radius: 50%;

  color: var(--wine);
  font-family: var(--heading-font);
  font-size: 16px;
}

.main-nav {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 34px;
}

.nav-link {
  position: relative;
  padding: 8px 0;

  color: var(--muted);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: .055em;

  transition: color .2s ease;
}

.nav-link:hover,
.nav-link.active {
  color: var(--wine);
}

.nav-link.active::after {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;

  height: 1px;
  background: var(--wine);

  content: "";
}

.cv-link {
  color: var(--wine);
}

/* =========================================================
   SHARED TYPOGRAPHY
========================================================= */

.page-label {
  margin: 0 0 18px;
  color: var(--wine-light);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .19em;
  text-transform: uppercase;
}

h1,
h2,
h3 {
  margin-top: 0;
  color: var(--wine-dark);
  font-family: var(--heading-font);
  font-weight: 700;
  line-height: 1.2;
}

.page-heading {
  margin-bottom: 60px;
}

.page-heading h1 {
  margin-bottom: 0;
  font-size: clamp(36px, 5vw, 54px);
  font-weight: 700;
}

.page-intro {
  max-width: 650px;
  margin: 20px 0 0;
  color: var(--wine-light);
  font-size: 15px;
  line-height: 1.9;
}

.inline-link {
  color: var(--wine);
  text-decoration: underline;
  text-decoration-color: var(--pink);
  text-underline-offset: 3px;
}

.inline-link:hover {
  text-decoration-color: var(--wine);
}

.text-link {
  display: inline-block;
  margin-top: 12px;
  color: var(--wine);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .035em;
}

.text-link:hover {
  color: var(--wine-light);
}

/* =========================================================
   HOME
========================================================= */

.home-screen {
  min-height: 560px;

  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(300px, .85fr);
  align-items: center;
  gap: 90px;
}

.home-copy {
  max-width: 500px;
}

.home-name {
  margin: 0 0 20px;

  font-size: clamp(42px, 5.5vw, 65px);
  letter-spacing: -.035em;
  font-weight: 700;
}

.home-role {
  margin: 0 0 4px;
  color: var(--wine);
  font-size: 14px;
  font-weight: 700;
}

.home-department {
  margin: 0 0 28px;
  color: var(--wine-light);
  font-size: 13px;
}

.home-introduction {
  max-width: 460px;
  margin: 0;
  color: #66505a;
  font-size: 15px;
  line-height: 1.9;
}

.home-email {
  display: inline-block;
  margin-top: 30px;
  color: var(--wine);
  font-size: 13px;
  font-weight: 700;
}

.home-photo-panel {
  width: 100%;
  max-width: 440px;
  justify-self: end;
}

.home-portrait {
  width: 100%;
  max-height: 540px;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  object-position: center;
}

/* =========================================================
   ABOUT — FULL-WIDTH MAP LAYOUT
========================================================= */

.about-screen {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  align-items: center;
  min-height: 570px;
}

.about-copy {
  position: relative;
  z-index: 2;
  width: min(48%, 510px);
  min-width: 390px;
  padding: 35px 0;
}

.about-copy .page-heading {
  margin-bottom: 40px;
}

.about-copy .page-heading h1 {
  font-size: 44px;
  font-weight: 700;
}

.journey-list {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 0;

  margin: 0;
  padding: 0;

  list-style: none;
}

.journey-list::before {
  position: absolute;
  top: 16px;
  bottom: 25px;
  left: 17px;

  width: 1px;
  background: var(--pink-light);

  content: "";
}

.journey-item {
  position: relative;
  display: grid;
  grid-template-columns: 36px minmax(0, 1fr);
  gap: 20px;

  padding: 0 0 38px;
}

.journey-index {
  position: relative;
  z-index: 1;

  display: grid;
  place-items: center;

  width: 35px;
  height: 35px;

  border: 1px solid var(--pink-light);
  border-radius: 50%;

  background: white;
  color: var(--wine);

  font-size: 10px;
  font-weight: 600;
}

.journey-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 18px;
  margin: 3px 0 9px;

  color: var(--wine-light);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: .035em;
}

.journey-meta span + span {
  color: var(--muted);
  font-weight: 400;
}

.journey-copy h2 {
  margin: 0 0 9px;
  color: var(--wine-dark);
  font-size: 22px;
  font-weight: 700;
}

.journey-copy p {
  margin: 0;
  color: #755e68;
  font-size: 14px;
  line-height: 1.9;
}

.about-email {
  display: inline-block;
  margin-top: 4px;

  color: var(--wine);
  font-size: 11px;
  font-weight: 600;
}

/* =========================================================
   ABOUT — FULL-WIDTH WORLD MAP
========================================================= */

.route-panel {
  position: absolute;
  inset: 0;
  z-index: 1;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.world-map {
  position: relative;
  width: 100%;
  height: 100%;
  overflow: visible;
  border-radius: 0;

  background: transparent;

  transform: translateX(10%);

  /* Fade the map underneath the timeline */
  -webkit-mask-image: linear-gradient(
    to right,
    transparent 0%,
    rgba(0, 0, 0, 0.08) 18%,
    rgba(0, 0, 0, 0.25) 32%,
    rgba(0, 0, 0, 0.65) 48%,
    rgba(0, 0, 0, 0.9) 65%,
    black 82%
  );

  mask-image: linear-gradient(
    to right,
    transparent 0%,
    rgba(0, 0, 0, 0.08) 18%,
    rgba(0, 0, 0, 0.25) 32%,
    rgba(0, 0, 0, 0.65) 48%,
    rgba(0, 0, 0, 0.9) 65%,
    black 82%
  );
}

.world-map-svg {
  display: block;
  width: 100%;
  height: 100%;
  overflow: visible;
}

.world-graticule {
  fill: none;
  stroke: #ddcbd3;
  stroke-width: .7;
  opacity: .65;
}

.world-land {
  fill: #e8d5dd;
  stroke: none;
}

.world-borders {
  fill: none;
  stroke: #d4b9c5;
  stroke-width: .55;
  opacity: .75;
}

.world-route-glow {
  fill: none;
  stroke: #b96d89;
  stroke-width: 8;
  stroke-linecap: round;
  opacity: .12;
}

.world-route {
  fill: none;
  stroke: #8b3657;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-dasharray: 5 6;
}

.world-location-halo {
  fill: #b96d89;
  opacity: .2;
}

.world-location-dot {
  fill: var(--wine);
  stroke: white;
  stroke-width: 2;
}

.world-location-name {
  fill: #3d1023;
  font-family: var(--body-font);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .12em;
}

.world-location-country {
  fill: #947984;
  font-family: var(--body-font);
  font-size: 8px;
  font-weight: 600;
  letter-spacing: .09em;
}

.world-travelling-dot {
  fill: var(--wine);
  stroke: white;
  stroke-width: 2;
}

.map-caption {
  position: absolute;
  right: 0;
  bottom: 5px;
  width: 55%;
  margin-top: 0;
  font-size: 11px;
}
.map-arrow {
  color: var(--wine);
  font-size: 15px;
}

.map-loading,
.map-fallback {
  min-height: 250px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;

  padding: 24px;
  color: var(--muted);
  font-size: 11px;
  text-align: center;
}

.map-fallback p {
  margin: 0;
}

.map-fallback span {
  padding-inline: 8px;
  color: var(--wine);
}

/* =========================================================
   ACADEMICS
========================================================= */

.academics-page > .page-heading {
  margin-bottom: 72px;
}

.academic-section {
  margin-top: 0;
}

.section-heading {
  margin-bottom: 30px;
}

.section-heading .page-label {
  margin-bottom: 10px;
}

.section-heading h2 {
  margin: 0;
  font-size: 34px;
}

.section-heading .page-intro {
  margin-top: 12px;
}

.publication-entry,
.education-entry {
  display: grid;
  grid-template-columns: 105px minmax(0, 1fr);
  gap: 28px;

  padding: 28px 0;
  border-top: 1px solid var(--line);
}

.publication-year,
.education-period {
  margin: 2px 0 0;

  color: var(--wine-light);
  font-size: 11px;
  font-weight: 600;
}

.publication-authors {
  margin: 0 0 9px;
  color: var(--wine-light);
  font-size: 13px;
  line-height: 1.7;
}

.publication-authors strong {
  color: var(--wine-dark);
  font-weight: 700;
}

.publication-title {
  margin: 0 0 11px;
  color: var(--wine-dark);
  font-family: var(--body-font);
  font-size: 16px;
  font-weight: 700;
  line-height: 1.7;
}

.publication-venue {
  margin: 0;
  color: var(--wine-light);
  font-size: 14px;
  line-height: 1.8;
}

.publication-venue em {
  color: var(--wine-dark);
  font-weight: 600;
}

.education-content h3 {
  margin: 0 0 8px;
  color: var(--wine-dark);
  font-size: 22px;
  font-weight: 700;
}

.education-institution {
  margin: 0;
  color: var(--wine);
  font-size: 14px;
  font-weight: 700;
}

.education-department {
  margin: 3px 0 0;
  color: var(--wine-light);
  font-size: 13px;
}

.education-detail {
  margin: 13px 0 0;
  color: #755e68;
  font-size: 14px;
  line-height: 1.9;
}

.education-location {
  margin: 9px 0 0;
  color: #9a8a91;
  font-size: 10px;
}

/* =========================================================
   OTHERS
========================================================= */

.others-page > .page-heading {
  margin-bottom: 55px;
}

.others-list {
  max-width: 760px;
}

.other-entry {
  padding: 26px 0;
  border-top: 1px solid var(--line);
}

.other-entry h2 {
  margin: 0 0 10px;
  color: var(--wine-dark);
  font-size: 23px;
  font-weight: 700;
}

.other-entry p {
  margin: 0;
  color: #755e68;
  font-size: 14px;
  line-height: 1.9;
}

.empty-state {
  padding: 20px 0;
  color: var(--muted);
  font-size: 12px;
}

/* =========================================================
   UNAVAILABLE PAGE
========================================================= */

.unavailable {
  max-width: 600px;
  padding: 70px 0;
}

.unavailable h1 {
  font-size: 38px;
}

.unavailable p:not(.page-label) {
  color: var(--muted);
  font-size: 13px;
}

/* =========================================================
   FOOTER
========================================================= */

#site-footer {
  width: 100%;
  margin-top: auto;
}

.footer-inner {
  min-height: 85px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;

  border-top: 1px solid var(--line);
}

.footer-socials {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}

.footer-socials a,
.footer-note {
  color: var(--muted);
  font-size: 10px;
}

.footer-socials a:hover {
  color: var(--wine);
}

.footer-note {
  text-align: right;
}

/* =========================================================
   RESPONSIVE — TABLET
========================================================= */

@media (max-width: 900px) {
  :root {
    --page-padding: 34px;
  }

  .home-screen {
    gap: 45px;
  }

  .about-screen {
    grid-template-columns: 1fr;
    gap: 35px;
  }

  .route-panel {
    max-width: 650px;
  }
}

/* =========================================================
   RESPONSIVE — MOBILE
========================================================= */

@media (max-width: 620px) {
  :root {
    --page-padding: 23px;
  }

  .header-inner {
    min-height: 82px;
    align-items: center;
    gap: 15px;
  }

  .brand-logo {
    height: 39px;
    max-width: 85px;
  }

  .main-nav {
    gap: 13px;
    flex-wrap: wrap;
    justify-content: flex-end;
  }

  .nav-link {
    font-size: 12px;
    font-weight: 500;
  }

  .page-container {
    padding-top: 48px;
    padding-bottom: 65px;
  }

  .home-screen {
    min-height: 0;
    grid-template-columns: 1fr;
    gap: 38px;
  }

  .home-name {
    font-size: 45px;
    font-weight: 700;
    line-height: 1.12;
  }

  .home-photo-panel {
    max-width: 100%;
    justify-self: stretch;
  }

  .home-portrait {
    max-height: 480px;
    aspect-ratio: 5 / 4;
    object-position: center 35%;
  }

  .page-heading {
    margin-bottom: 42px;
  }

  .page-heading h1,
  .about-copy .page-heading h1 {
    font-size: 39px;
    font-weight: 700;
    line-height: 1.15;
  }

  .journey-item {
    grid-template-columns: 31px minmax(0, 1fr);
    gap: 14px;
  }

  .journey-index {
    width: 31px;
    height: 31px;
  }

  .journey-list::before {
    left: 15px;
  }

  .journey-copy h2 {
    font-size: 20px;
    font-weight: 700;
    line-height: 1.35;
  }

  .map-caption {
    flex-wrap: wrap;
    gap: 7px;
    font-size: 11px;
  }

  .academics-page > .page-heading {
    margin-bottom: 50px;
  }

  .publication-entry,
  .education-entry {
    grid-template-columns: 1fr;
    gap: 10px;
    padding: 23px 0;
  }

  .education-section {
    margin-top: 55px;
  }

  .footer-inner {
    min-height: 100px;
    align-items: flex-start;
    flex-direction: column;
    justify-content: center;
    gap: 12px;
    padding-top: 18px;
    padding-bottom: 18px;
  }

  .footer-socials {
    gap: 15px;
  }

  .footer-note {
    text-align: left;
  }

  .about-screen {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 25px;
    min-height: 0;
  }

  .about-copy {
    width: 100%;
    min-width: 0;
    padding: 0;
  }

  .route-panel {
    position: relative;
    width: 100%;
    height: auto;
    min-height: 260px;
  }

  .world-map {
    height: 260px;
    mask-image: none;
    -webkit-mask-image: none;
  }

  .world-map-svg {
    height: 260px;
  }

  .map-caption {
    position: static;
    width: 100%;
    margin-top: 15px;
  }
}

/* =========================================================
   REDUCED MOTION
========================================================= */

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
}

/* =========================================================
   SUBTLE LOADING AND ENTRANCE ANIMATIONS
========================================================= */

/* General page entrance */

.page-enter {
  animation: pageFadeIn 650ms ease both;
}

@keyframes pageFadeIn {
  from {
    opacity: 0;
    transform: translateY(9px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Homepage portrait */

.home-portrait {
  animation: portraitReveal 900ms ease both;
  animation-delay: 150ms;
}

@keyframes portraitReveal {
  from {
    opacity: 0;
    transform: translateY(12px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Timeline stagger */

.journey-item {
  animation: itemReveal 600ms ease both;
}

.journey-item:nth-child(1) {
  animation-delay: 100ms;
}

.journey-item:nth-child(2) {
  animation-delay: 220ms;
}

.journey-item:nth-child(3) {
  animation-delay: 340ms;
}

/* Publications and education */

.publication-entry,
.education-entry,
.other-entry {
  animation: itemReveal 600ms ease both;
}

.publication-entry:nth-child(2),
.education-entry:nth-child(2),
.other-entry:nth-child(2) {
  animation-delay: 120ms;
}

.publication-entry:nth-child(3),
.education-entry:nth-child(3),
.other-entry:nth-child(3) {
  animation-delay: 240ms;
}

@keyframes itemReveal {
  from {
    opacity: 0;
    transform: translateY(10px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Map loading shimmer */

.map-loading {
  background: linear-gradient(
    100deg,
    #f5eaf0 30%,
    #fffafd 45%,
    #f5eaf0 60%
  );

  background-size: 200% 100%;
  animation: mapShimmer 1.8s ease-in-out infinite;
}

@keyframes mapShimmer {
  from {
    background-position: 100% 0;
  }

  to {
    background-position: -100% 0;
  }
}

/* Animated route */

.world-route {
  animation: routeDash 22s linear infinite;
}

@keyframes routeDash {
  to {
    stroke-dashoffset: -110;
  }
}

/* Smooth appearance of map */

.world-land,
.world-borders {
  animation: mapReveal 1.1s ease both;
}

@keyframes mapReveal {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

/* Respect accessibility preferences */

@media (prefers-reduced-motion: reduce) {
  .page-enter,
  .home-portrait,
  .journey-item,
  .publication-entry,
  .education-entry,
  .other-entry,
  .map-loading,
  .world-route,
  .world-land,
  .world-borders {
    animation: none !important;
    transition: none !important;
  }
}
/* Editorial refinements */
:root { --paper: #faf8f5; --line: #e7ddde; --muted: #75676d; }
.brand { gap: 12px; }
.brand-monogram { font-family: var(--heading-font); font-size: 25px; font-weight: 700; color: var(--wine); letter-spacing: -.07em; line-height: 1; }
.brand-period { color: var(--wine-light); }
.brand-name { font-family: var(--heading-font); color: var(--wine-dark); font-size: 16px; font-weight: 600; white-space: nowrap; }
.nav-link { font-size: 12px; letter-spacing: .02em; }
.home-screen { min-height: 510px; gap: clamp(35px, 7vw, 90px); }
.home-eyebrow, .home-section-label { color: var(--wine-light); font-size: 11px; font-weight: 600; letter-spacing: .13em; }
.home-eyebrow { margin: 0 0 22px; }
.home-name { font-family: var(--heading-font); font-weight: 600; font-size: clamp(43px, 5.5vw, 66px); line-height: 1.15; margin-bottom: 18px; }
.home-role { font-size: 14px; font-weight: 600; }
.home-department { margin-bottom: 24px; font-size: 13px; }
.home-introduction { font-size: 15px; line-height: 1.85; }
.home-actions { display: flex; gap: 23px; flex-wrap: wrap; margin-top: 30px; }
.home-actions .text-link { font-size: 13px; font-weight: 600; }
.home-portrait { border-radius: 2px; }
.home-interests, .home-featured { border-top: 1px solid var(--line); padding: 21px 0 25px; }
.home-interests p:last-child { margin: 0; color: var(--wine-dark); font-size: 14px; }
.home-section-label { margin: 0 0 12px; }
.interest-separator { margin: 0 14px; color: var(--pink); }
.home-featured a { display: inline-block; max-width: 720px; font-family: var(--heading-font); font-size: 18px; line-height: 1.5; color: var(--wine-dark); }
.home-featured a:hover, .publication-title a:hover { color: var(--wine-light); }
.publication-title { font-family: var(--heading-font); font-size: 21px; font-weight: 600; line-height: 1.5; }
.publication-year, .education-period, .education-location { font-size: 12px; }
.publication-authors { font-size: 13px; }
.publication-entry, .education-entry { padding: 30px 0; }
.other-entry h2 { font-family: var(--heading-font); font-weight: 600; }
.world-route { stroke-linecap: round; }
a:focus-visible { outline: 2px solid var(--wine); outline-offset: 4px; }
@media (max-width: 620px) {
  .header-inner { flex-wrap: wrap; padding-top: 16px; padding-bottom: 13px; gap: 8px 16px; }
  .brand-name { font-size: 14px; }
  .brand-monogram { font-size: 22px; }
  .main-nav { gap: 17px; }
  .home-screen { gap: 30px; }
  .home-eyebrow { margin-bottom: 15px; }
  .home-name { font-size: clamp(39px, 9vw, 48px); }
  .home-interests { margin-top: 30px; }
  .interest-separator { margin: 0 8px; }
}

/* Small refinements: logo, social links, expandable abstracts and compact education */
.brand-logo-custom { width: 44px; height: 44px; max-width: none; border-radius: 4px; object-fit: cover; }
.home-socials { border-top: 1px solid var(--line); padding: 21px 0 25px; }
.home-social-links { display: flex; flex-wrap: wrap; gap: 12px 26px; align-items: center; }
.home-social-links a, .social-pending { font-size: 13px; color: var(--wine); text-decoration: none; }
.home-social-links a:hover { text-decoration: underline; text-underline-offset: 4px; }
.social-pending { opacity: .48; cursor: default; }
.work-abstract { margin-top: 17px; max-width: 700px; border-top: 1px solid var(--line); padding-top: 10px; }
.work-abstract summary { cursor: pointer; width: fit-content; color: var(--wine); font-size: 13px; font-weight: 600; list-style: none; }
.work-abstract summary::-webkit-details-marker { display: none; }
.abstract-chevron { display: inline-block; margin-left: 6px; transition: transform .2s ease; }
.work-abstract[open] .abstract-chevron { transform: rotate(180deg); }
.abstract-body { margin-top: 12px; color: var(--muted); font-size: 14px; line-height: 1.8; white-space: pre-line; }
.abstract-placeholder { font-style: italic; opacity: .7; }
.work-request { font-size: 13px; line-height: 1.7; color: var(--muted); margin: 12px 0 0; }
.work-request a { color: var(--wine); text-underline-offset: 3px; }
.education-content { display: flex; flex-direction: column; align-items: flex-start; gap: 0; }
.education-content h3 { margin-bottom: 5px; }
.education-institution, .education-department, .education-detail, .education-location { margin-top: 0; margin-bottom: 0; }
.education-department { margin-top: 2px; }
.education-detail { margin-top: 7px; line-height: 1.65; }
.education-location { margin-top: 6px; }
@media (prefers-reduced-motion: reduce) { .abstract-chevron { transition: none; } }

/* Editorial refinement: compact square portrait and publication metadata */
.home-photo-panel { max-width: 310px; width: 100%; justify-self: end; }
.home-portrait { display: block; width: 100%; aspect-ratio: 1 / 1; max-height: none; object-fit: cover; object-position: center 38%; }
.home-role .inline-link { color: inherit; text-decoration: underline; text-decoration-color: #bd9eaa; text-underline-offset: 3px; }
.publication-side { display: flex; flex-direction: column; align-items: flex-start; gap: 9px; }
.publication-side .publication-year { margin: 0; }
.publication-side .publication-type { margin: 0; color: var(--wine-light); font-size: 11px; font-weight: 600; letter-spacing: .055em; line-height: 1.5; }
.world-map { transform: none; }
.world-map-svg { overflow: hidden; }
.world-land { fill: #eee4e6; }
.world-borders { stroke: #cdbbc3; stroke-width: .7; opacity: .85; }
.world-graticule { opacity: .25; }
.world-route { stroke: #813451; stroke-width: 2.6; stroke-dasharray: none; }
.world-location-country { font-size: 10px; letter-spacing: .04em; }
@media (max-width: 700px) { .home-photo-panel { max-width: 230px; justify-self: start; } .publication-side { gap: 4px; } }

@media (min-width: 701px) {
  .home-photo-panel { margin-right: clamp(22px, 4vw, 70px); }
  .route-panel { left: 49%; right: 0; width: 51%; }
  .world-map { -webkit-mask-image: none; mask-image: none; }
}
@media (max-width: 700px) {
  .home-photo-panel { margin-right: 0; }
  .world-map { -webkit-mask-image: none; mask-image: none; }
}
.katex-display { overflow-x: auto; overflow-y: hidden; padding: .15em 0; }
.publication-title .katex { font-size: 1em; }

/* V5: immersive cartography behind the timeline, with softly faded edges. */
.about-screen { isolation: isolate; }
.about-copy { z-index: 3; }
.route-panel {
  inset: -7% -9% -8% 0;
  width: auto;
  height: auto;
  z-index: 1;
  overflow: hidden;
}
.world-map {
  width: 100%; height: 100%; transform: none;
  -webkit-mask-image: radial-gradient(ellipse 77% 72% at 67% 49%, #000 37%, rgba(0,0,0,.84) 59%, rgba(0,0,0,.32) 82%, transparent 100%);
  mask-image: radial-gradient(ellipse 77% 72% at 67% 49%, #000 37%, rgba(0,0,0,.84) 59%, rgba(0,0,0,.32) 82%, transparent 100%);
}
.world-map-svg { width: 100%; height: 100%; object-fit: cover; }
/* A soft readability veil lets the timeline sit over the cartography. */
.route-panel::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(90deg, var(--bg, #faf8f5) 0%, rgba(250,248,245,.95) 20%, rgba(250,248,245,.70) 39%, rgba(250,248,245,.08) 67%, transparent 90%);
}
@media (min-width: 701px) {
  .route-panel { left: 0; right: -9%; width: auto; }
  .world-map { -webkit-mask-image: radial-gradient(ellipse 77% 72% at 67% 49%, #000 37%, rgba(0,0,0,.84) 59%, rgba(0,0,0,.32) 82%, transparent 100%); mask-image: radial-gradient(ellipse 77% 72% at 67% 49%, #000 37%, rgba(0,0,0,.84) 59%, rgba(0,0,0,.32) 82%, transparent 100%); }
}
@media (max-width: 700px) {
  .route-panel { inset: 0 -18% 0 -18%; width: auto; opacity: .42; }
  .world-map { -webkit-mask-image: radial-gradient(ellipse at center, #000 20%, transparent 80%); mask-image: radial-gradient(ellipse at center, #000 20%, transparent 80%); }
  .route-panel::after { background: linear-gradient(90deg, rgba(250,248,245,.84), rgba(250,248,245,.58)); }
}

/* V6: keep the whole animated route to the right of the timeline. */
@media (min-width: 701px) {
  .about-screen { isolation: isolate; }
  .about-copy { width: min(44%, 510px); min-width: 0; z-index: 3; }
  .route-panel {
    inset: -5% -5% -5% auto;
    width: 59%;
    height: auto;
    z-index: 1;
    overflow: hidden;
  }
  .world-map {
    width: 100%; height: 100%;
    -webkit-mask-image: radial-gradient(ellipse 90% 83% at 52% 49%, #000 44%, rgba(0,0,0,.85) 68%, transparent 100%);
    mask-image: radial-gradient(ellipse 90% 83% at 52% 49%, #000 44%, rgba(0,0,0,.85) 68%, transparent 100%);
  }
  .route-panel::after { display: none; }
}
@media (max-width: 700px) {
  .about-screen { display: flex; flex-direction: column; align-items: stretch; gap: 22px; }
  .about-copy { width: 100%; min-width: 0; }
  .route-panel {
    position: relative; inset: auto; width: 100%;
    min-height: 270px; height: 310px; opacity: 1;
  }
  .world-map { height: 100%;
    -webkit-mask-image: radial-gradient(ellipse 95% 85% at center, #000 52%, transparent 100%);
    mask-image: radial-gradient(ellipse 95% 85% at center, #000 52%, transparent 100%);
  }
  .route-panel::after { display: none; }
}
/* Original moving-dash effect, plus the original continuously travelling dot. */
.world-route { animation: routeDash 22s linear infinite; }
@media (prefers-reduced-motion: reduce) { .world-route { animation: none; } }

/* V7: map stays within the same horizontal rules as the page content.
   Fade the cartography on every edge without obscuring the route animation. */
.about-screen { overflow: hidden; }
@media (min-width: 701px) {
  .route-panel {
    inset: 0 0 0 auto;
    width: 58%;
    height: 100%;
    overflow: hidden;
  }
  .world-map {
    -webkit-mask-image: radial-gradient(ellipse 74% 70% at 51% 50%, #000 35%, rgba(0,0,0,.92) 53%, rgba(0,0,0,.48) 73%, transparent 100%);
    mask-image: radial-gradient(ellipse 74% 70% at 51% 50%, #000 35%, rgba(0,0,0,.92) 53%, rgba(0,0,0,.48) 73%, transparent 100%);
  }
}
@media (max-width: 700px) {
  .route-panel { inset: auto; width: 100%; overflow: hidden; }
  .world-map {
    -webkit-mask-image: radial-gradient(ellipse 80% 76% at center, #000 38%, rgba(0,0,0,.7) 65%, transparent 100%);
    mask-image: radial-gradient(ellipse 80% 76% at center, #000 38%, rgba(0,0,0,.7) 65%, transparent 100%);
  }
}
/* Distinct hierarchy: year is the anchor; publication type is secondary. */
.publication-side { gap: 5px; }
.publication-side .publication-year {
  font-size: 15px;
  line-height: 1.4;
  font-weight: 650;
  letter-spacing: -.015em;
  color: var(--wine-dark);
}
.publication-side .publication-type {
  font-size: 11px;
  line-height: 1.45;
  font-weight: 500;
  letter-spacing: .025em;
  color: var(--wine-light);
}

/* V8: fade the cartography at the top and bottom as well as the sides.
   The map remains inside the page's horizontal rules. */
.world-map {
  -webkit-mask-image: radial-gradient(ellipse 88% 67% at 50% 50%, #000 29%, rgba(0,0,0,.94) 45%, rgba(0,0,0,.55) 67%, rgba(0,0,0,.16) 84%, transparent 100%);
  mask-image: radial-gradient(ellipse 88% 67% at 50% 50%, #000 29%, rgba(0,0,0,.94) 45%, rgba(0,0,0,.55) 67%, rgba(0,0,0,.16) 84%, transparent 100%);
}
/* Restore the original continuous moving dashed route (not a solid stroke). */
.world-route {
  stroke-dasharray: 5 6;
  stroke-linecap: round;
  animation: routeDash 22s linear infinite;
}
@media (prefers-reduced-motion: reduce) {
  .world-route { animation: none !important; }
}



/* SITE REFINEMENTS V10 */

/* Stronger, more visible map fade on all four sides */
.journey-map,
.about-map,
.map-container,
.map-wrap {
    -webkit-mask-image: radial-gradient(
        ellipse 65% 60% at 50% 50%,
        black 12%,
        rgba(0,0,0,.95) 35%,
        rgba(0,0,0,.65) 55%,
        rgba(0,0,0,.25) 73%,
        transparent 94%
    );
    mask-image: radial-gradient(
        ellipse 65% 60% at 50% 50%,
        black 12%,
        rgba(0,0,0,.95) 35%,
        rgba(0,0,0,.65) 55%,
        rgba(0,0,0,.25) 73%,
        transparent 94%
    );
}

/* Animated dropdown appearance */
details > summary {
    cursor: pointer;
}

details > summary::marker {
    transition: color .25s ease;
}

details[open] > :not(summary) {
    animation: detailsReveal .32s ease both;
}

@keyframes detailsReveal {
    from {
        opacity: 0;
        transform: translateY(-8px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (prefers-reduced-motion: reduce) {
    details > summary,
    details[open] > :not(summary) {
        animation: none !important;
        transition: none !important;
    }
}

/* ACADEMIC SECTION SPACING REFINEMENT */

/* More separation between Academic Work and Education */
.academics-page .education-section {
    margin-top: clamp(85px, 11vw, 150px);
}

@media (max-width: 760px) {
    .academics-page .education-section {
        margin-top: 75px;
    }
}


/* HIGHLIGHT_UK_PH_V2 */

/* Subtle burgundy highlights */
.world-country-highlight {
    fill: #873e59;
    fill-opacity: 0.45;

    stroke: #63243c;
    stroke-opacity: 0.75;
    stroke-width: 0.9px;
    stroke-linejoin: round;

    vector-effect: non-scaling-stroke;
}
