/* Apple-inspired academic site: large type, glass, depth, restrained motion. */

:root {
  --cmu-red: #c41230;
  --cmu-red-hover: #a10f28;
  --apple-blue: var(--cmu-red);
  --apple-blue-hover: var(--cmu-red-hover);
  --apple-text: #1d1d1f;
  --apple-muted: #6e6e73;
  --apple-bg: #f5f5f7;
  --apple-card: rgba(255, 255, 255, 0.72);
  --apple-line: rgba(0, 0, 0, 0.08);
  --apple-shadow: 0 18px 50px rgba(0, 0, 0, 0.08);
  --apple-glass-sm-bg: radial-gradient(120% 90% at 92% 0%, rgba(180, 196, 214, 0.18) 0%, rgba(255, 255, 255, 0.42) 34%, rgba(255, 255, 255, 0.9) 68%);
  --apple-glass-sm-border: rgba(226, 234, 242, 0.58);
  --apple-glass-sm-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.82), inset -20px 14px 28px rgba(120, 136, 156, 0.04), 0 8px 20px rgba(0, 0, 0, 0.03);
  --apple-glass-sm-blur: blur(16px) saturate(150%);
  --apple-ease: cubic-bezier(0.25, 0.1, 0.25, 1);
  --global-theme-color: var(--cmu-red);
  --global-hover-color: var(--cmu-red-hover);
  --global-hover-text-color: #ffffff;
  --global-code-bg-color: rgba(196, 18, 48, 0.08);
}

html[data-theme="dark"],
html[data-theme-setting="dark"] {
  --cmu-red: #e03a4f;
  --cmu-red-hover: #ef5a6b;
  --apple-blue: var(--cmu-red);
  --apple-blue-hover: var(--cmu-red-hover);
  --apple-text: #f5f5f7;
  --apple-muted: #a1a1a6;
  --apple-bg: #000000;
  --apple-card: rgba(28, 28, 30, 0.72);
  --apple-line: rgba(255, 255, 255, 0.1);
  --apple-shadow: 0 24px 60px rgba(0, 0, 0, 0.45);
  --apple-glass-sm-bg: radial-gradient(120% 90% at 92% 0%, rgba(148, 163, 180, 0.14) 0%, rgba(40, 44, 52, 0.28) 40%, rgba(255, 255, 255, 0.07) 72%);
  --apple-glass-sm-border: rgba(180, 196, 214, 0.14);
  --apple-glass-sm-shadow: inset 0 1px 0 rgba(210, 216, 224, 0.1), inset -18px 14px 26px rgba(120, 136, 156, 0.05), 0 10px 24px rgba(0, 0, 0, 0.22);
  --apple-glass-sm-blur: blur(16px) saturate(140%);
  --global-theme-color: var(--cmu-red);
  --global-hover-color: var(--cmu-red-hover);
  --global-code-bg-color: rgba(224, 58, 79, 0.14);
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "SF Pro Display", "Helvetica Neue", Helvetica, Arial, sans-serif;
  background: var(--apple-bg) !important;
  color: var(--apple-text);
  letter-spacing: -0.011em;
}

body .container {
  max-width: 980px;
}

#navbar.navbar,
nav.navbar.fixed-top {
  background: rgba(251, 251, 253, 0.72) !important;
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid var(--apple-line);
  box-shadow: none !important;
}

html[data-theme="dark"] #navbar.navbar,
html[data-theme="dark"] nav.navbar.fixed-top {
  background: rgba(22, 22, 23, 0.72) !important;
}

#navbar .nav-link,
#navbar .navbar-brand {
  font-size: 0.78rem;
  letter-spacing: -0.01em;
  font-weight: 500;
}

#navbar .nav-link:hover,
#navbar .nav-link:focus,
#navbar .nav-link:focus-visible,
#navbar .nav-link:active,
#navbar .nav-link.active,
#navbar .navbar-brand:hover,
#navbar .navbar-brand:focus,
#navbar .navbar-brand:active {
  color: var(--apple-blue) !important;
}

#navbar .nav-link:focus-visible,
#navbar .navbar-brand:focus-visible,
#navbar button:focus-visible {
  outline: 2px solid var(--apple-blue);
  outline-offset: 2px;
}

a {
  color: var(--apple-blue);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
  transition: color 0.25s var(--apple-ease);
}

a:hover {
  color: var(--apple-blue-hover);
}

h1, h2, h3, .post-title, .apple-hero-title {
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Helvetica Neue", Helvetica, Arial, sans-serif;
  letter-spacing: -0.03em;
  font-weight: 600;
}

.apple-hero {
  position: relative;
  overflow: hidden;
  text-align: center;
  padding: 7.5rem 1rem 4.5rem;
  margin: -1.5rem -12px 3.5rem;
  border-radius: 28px;
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.58);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.78),
    inset 0 -24px 40px rgba(120, 136, 156, 0.05),
    0 22px 54px rgba(0, 0, 0, 0.06);
}

.apple-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  border-radius: inherit;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.28), rgba(255, 255, 255, 0.1));
  backdrop-filter: blur(12px) saturate(160%);
  -webkit-backdrop-filter: blur(12px) saturate(160%);
}

html[data-theme="dark"] .apple-hero,
html[data-theme-setting="dark"] .apple-hero {
  background: transparent;
  border-color: rgba(255, 255, 255, 0.14);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.16),
    0 22px 54px rgba(0, 0, 0, 0.35);
}

html[data-theme="dark"] .apple-hero::after,
html[data-theme-setting="dark"] .apple-hero::after {
  background: linear-gradient(180deg, rgba(40, 40, 44, 0.28), rgba(20, 20, 22, 0.12));
}

.apple-orbs {
  pointer-events: none;
  position: absolute;
  z-index: 0;
  inset: -20% -10% auto;
  height: 28rem;
  background:
    radial-gradient(circle at 28% 40%, rgba(196, 18, 48, 0.22), transparent 42%),
    radial-gradient(circle at 72% 30%, rgba(4, 54, 115, 0.18), transparent 38%),
    radial-gradient(circle at 50% 80%, rgba(253, 181, 21, 0.14), transparent 42%),
    radial-gradient(circle at 18% 72%, rgba(0, 143, 145, 0.12), transparent 40%);
  filter: blur(8px);
  animation: apple-drift 18s var(--apple-ease) infinite alternate;
}

html[data-theme="dark"] .apple-orbs {
  background:
    radial-gradient(circle at 28% 40%, rgba(224, 58, 79, 0.3), transparent 44%),
    radial-gradient(circle at 72% 30%, rgba(90, 186, 255, 0.22), transparent 40%),
    radial-gradient(circle at 50% 80%, rgba(253, 196, 72, 0.14), transparent 42%),
    radial-gradient(circle at 18% 72%, rgba(72, 196, 198, 0.14), transparent 40%);
}

.apple-tartan-mark {
  pointer-events: none;
  position: absolute;
  z-index: 0;
  left: 50%;
  top: 62%;
  width: min(32vw, 180px);
  aspect-ratio: 562 / 600;
  transform: translate(-50%, -50%);
  opacity: 0.24;
}

.apple-tartan-mark img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.apple-tartan-mark .apple-tartan-dark {
  display: none;
}

html[data-theme="dark"] .apple-tartan-mark .apple-tartan-light,
html[data-theme-setting="dark"] .apple-tartan-mark .apple-tartan-light {
  display: none;
}

html[data-theme="dark"] .apple-tartan-mark .apple-tartan-dark,
html[data-theme-setting="dark"] .apple-tartan-mark .apple-tartan-dark {
  display: block;
}

html[data-theme="dark"] .apple-tartan-mark,
html[data-theme-setting="dark"] .apple-tartan-mark {
  opacity: 0.3;
}

@keyframes apple-drift {
  from { transform: translate3d(-2%, 0, 0) scale(1); }
  to { transform: translate3d(3%, 4%, 0) scale(1.06); }
}

.apple-eyebrow {
  position: relative;
  margin: 0 0 0.85rem;
  color: var(--apple-muted);
  font-size: 0.92rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.apple-hero-title {
  position: relative;
  z-index: 2;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  margin: 0 auto 0.7rem;
  max-width: 18ch;
  font-size: clamp(2.8rem, 7vw, 5.4rem);
  line-height: 1.02;
  color: #1d1d1f;
  -webkit-text-fill-color: #1d1d1f;
  filter: drop-shadow(0 8px 20px rgba(0, 0, 0, 0.12));
  cursor: default;
}

.apple-ch {
  display: inline-block;
  transform-origin: 50% 85%;
  cursor: pointer;
  will-change: transform;
}

.apple-ch.is-space {
  pointer-events: none;
  width: 0.28em;
}

.apple-ch.is-hot {
  z-index: 4;
}

.apple-title-wrap {
  position: relative;
  z-index: 3;
  width: fit-content;
  max-width: 100%;
  margin: 0 auto;
}

html[data-theme="dark"] .apple-hero-title,
html[data-theme-setting="dark"] .apple-hero-title {
  color: #f5f5f7;
  -webkit-text-fill-color: #f5f5f7;
}

.apple-liquid-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 0;
}

.apple-eyebrow,
.apple-hero-sub,
.apple-hero-lede,
.apple-hero-actions {
  position: relative;
  z-index: 2;
}

.apple-hero-sub {
  position: relative;
  margin: 0 auto 1.1rem;
  max-width: 34rem;
  color: var(--apple-muted);
  font-size: clamp(1.15rem, 2.4vw, 1.55rem);
  line-height: 1.35;
  font-weight: 500;
}

.apple-hero-lede {
  position: relative;
  margin: 0 auto 1.8rem;
  max-width: 38rem;
  color: var(--apple-text);
  font-size: 1.12rem;
  line-height: 1.5;
}

.apple-hero-actions {
  position: relative;
  isolation: isolate;
  display: flex;
  gap: 0.75rem;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  min-height: 5.5rem;
}

.apple-hero-actions .apple-btn {
  position: relative;
  z-index: 1;
}

.apple-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.75rem;
  padding: 0.55rem 1.2rem;
  border-radius: 0.7rem;
  font-size: 1rem;
  font-weight: 500;
  letter-spacing: -0.01em;
  text-decoration: none !important;
  transition: transform 0.25s var(--apple-ease), background 0.25s var(--apple-ease), box-shadow 0.25s var(--apple-ease), border-color 0.25s var(--apple-ease), color 0.25s var(--apple-ease);
}

.apple-btn-primary {
  background: var(--cmu-red);
  color: #fff !important;
  box-shadow: 0 8px 22px rgba(196, 18, 48, 0.22);
}

@media (hover: hover) and (pointer: fine) {
  .apple-btn-primary:hover {
    background: var(--cmu-red-hover);
    color: #fff !important;
    transform: translateY(-1px);
  }
}

.apple-btn-ghost {
  background: rgba(255, 255, 255, 0.72);
  color: var(--cmu-red) !important;
  border: 1px solid rgba(196, 18, 48, 0.22);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.8), 0 6px 16px rgba(29, 29, 31, 0.04);
  backdrop-filter: blur(14px) saturate(140%);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
}

@media (hover: hover) and (pointer: fine) {
  .apple-btn-ghost:hover {
    background: rgba(196, 18, 48, 0.06);
    border-color: rgba(196, 18, 48, 0.34);
    color: var(--cmu-red-hover) !important;
    transform: translateY(-1px);
  }
}

html[data-theme="dark"] .apple-btn-ghost {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(224, 58, 79, 0.34);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06), 0 8px 18px rgba(0, 0, 0, 0.2);
}

html[data-theme="dark"] .apple-btn-primary {
  box-shadow: 0 8px 22px rgba(224, 58, 79, 0.28);
}

.apple-article {
  font-size: 1.05rem;
  line-height: 1.65;
}

#about {
  scroll-margin-top: 5.2rem;
}

.apple-article > .clearfix > p:first-of-type {
  font-size: 1.22rem;
  line-height: 1.5;
  letter-spacing: -0.02em;
}

.apple-page h2,
.post h2 {
  margin-top: 3.2rem;
  margin-bottom: 1.15rem;
  font-size: clamp(1.7rem, 3vw, 2.15rem);
}

.apple-page ul,
.post ul {
  padding-left: 0;
  list-style: none;
}

.apple-page article ul > li,
.post article ul > li,
.apple-article ul > li,
.bibliography li,
.publications li {
  position: relative;
  background: var(--apple-glass-sm-bg);
  border: 1px solid var(--apple-glass-sm-border);
  box-shadow: var(--apple-glass-sm-shadow);
  backdrop-filter: var(--apple-glass-sm-blur);
  -webkit-backdrop-filter: var(--apple-glass-sm-blur);
  transition: transform 0.35s var(--apple-ease), box-shadow 0.35s var(--apple-ease), border-color 0.35s var(--apple-ease);
}

.apple-page article ul > li,
.post article ul > li,
.apple-article ul > li {
  margin: 0 0 0.85rem;
  padding: 1.05rem 5.6rem 1.05rem 1.15rem;
  border-radius: 16px;
}

.proj-affil-note {
  margin: 0.15rem 0 1.1rem;
  color: var(--apple-muted);
  font-size: 0.86rem;
  line-height: 1.4;
}

.proj-affils {
  pointer-events: none;
  position: absolute;
  z-index: 0;
  right: 0.55rem;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: flex-end;
  gap: 0.22rem;
  opacity: 0.4;
  filter: brightness(0.94) contrast(1.12) saturate(1.18);
}

.proj-affil {
  display: block;
  width: 3.15rem;
  height: 3.15rem;
  object-fit: contain;
}

.proj-affils:has(.is-collab) .proj-affil {
  width: 2.7rem;
  height: 2.7rem;
}

html[data-theme="dark"] .proj-affils,
html[data-theme-setting="dark"] .proj-affils {
  opacity: 0.5;
  filter: brightness(1) contrast(1.1) saturate(1.15);
}

.bibliography li,
.publications li {
  margin-bottom: 0.65rem !important;
  padding: 0.34rem 1.2rem !important;
  border-radius: 14px;
}

@media (hover: hover) and (pointer: fine) {
  .apple-page article ul > li:hover,
  .post article ul > li:hover,
  .apple-article ul > li:hover,
  .bibliography li:hover,
  .publications li:hover {
    transform: translateY(-2px);
    border-color: rgba(196, 206, 218, 0.72);
    box-shadow:
      inset 0 1px 0 rgba(255, 255, 255, 0.86),
      inset -18px 16px 26px rgba(120, 136, 156, 0.05),
      0 14px 30px rgba(0, 0, 0, 0.05);
  }
}

.bibliography .title,
.publications .title {
  display: block;
  width: 100%;
  box-sizing: border-box;
  padding-right: 6.5rem;
  margin: 0 0 0.12rem;
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: -0.022em;
  line-height: 1.32;
  white-space: normal;
}

.bibliography .author,
.publications .author {
  display: block;
  padding-right: 6.5rem;
  margin-bottom: 0.06rem;
  font-size: 0.92rem;
  line-height: 1.35;
}

.bibliography .periodical,
.publications .periodical {
  display: block;
  padding-right: 6.5rem;
  font-size: 0.9rem;
  line-height: 1.35;
}

.bibliography .links,
.publications .links {
  position: relative;
  z-index: 1;
  margin-top: 0.12rem;
}

.bibliography .links .btn,
.publications .links .btn {
  padding: 0.1rem 0.42rem;
  border-radius: 0.35rem;
  line-height: 1.3;
  font-size: 0.875rem;
}

.bibliography li > .row,
.publications li > .row {
  position: relative;
  z-index: 1;
}

.pub-affil-mark {
  pointer-events: none;
  position: absolute;
  z-index: 0;
  right: 0.7rem;
  top: 50%;
  width: min(16vw, 96px);
  aspect-ratio: 1;
  transform: translateY(-50%);
  opacity: 0.24;
}

.pub-affil-mark img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

html[data-theme="dark"] .pub-affil-mark,
html[data-theme-setting="dark"] .pub-affil-mark {
  /* Keep affiliation seal hue (LZU navy); no invert-to-gray. */
  opacity: 0.38;
  filter: brightness(1.08);
}

@media (max-width: 640px) {
  .bibliography .title,
  .publications .title,
  .bibliography .author,
  .publications .author,
  .bibliography .periodical,
  .publications .periodical {
    padding-right: 4.6rem;
  }

  .bibliography .title,
  .publications .title {
    font-size: 1rem;
  }

  .pub-affil-mark {
    right: 0.45rem;
    width: min(20vw, 72px);
    opacity: 0.2;
  }

  .apple-page article ul > li,
  .post article ul > li,
  .apple-article ul > li {
    padding-right: 4.6rem !important;
  }

  .proj-affils {
    right: 0.4rem;
  }

  .proj-affil,
  .proj-affils:has(.is-collab) .proj-affil {
    width: 2.35rem;
    height: 2.35rem;
  }
}

footer.fixed-bottom,
footer.apple-footer,
footer {
  background: rgba(251, 251, 253, 0.72) !important;
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  border-top: 1px solid var(--apple-line);
  color: var(--apple-muted);
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: -0.01em;
  box-shadow: none !important;
}

html[data-theme="dark"] footer.fixed-bottom,
html[data-theme="dark"] footer.apple-footer,
html[data-theme="dark"] footer {
  background: rgba(22, 22, 23, 0.72) !important;
}

.apple-footer .container {
  padding-top: 0.7rem;
  padding-bottom: 0.7rem;
}

.social {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
}

.social .contact-icons {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 1.85rem;
  width: max-content;
  max-width: 100%;
  margin-inline: auto;
  line-height: 1;
}

.social .contact-icons a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: auto;
  height: 1.2em;
  margin: 0;
  line-height: 1;
  transition: transform 0.3s var(--apple-ease);
}

.social .contact-icons a i {
  width: auto;
  line-height: 1;
}

.social .contact-icons a .ai {
  font-size: 1.2em;
}

.social .contact-icons a .ai-google-scholar {
  margin-inline-start: -0.42rem;
}

.social .contact-icons a:hover {
  transform: translateY(-3px) scale(1.06);
}

@media (max-width: 576px) {
  .social .contact-icons {
    gap: 1.15rem;
    font-size: 2.7rem;
  }
}

.apple-reveal {
  opacity: 0;
  transform: translateY(18px);
  animation: apple-rise 0.8s var(--apple-ease) forwards;
}

@keyframes apple-rise {
  to {
    opacity: 1;
    transform: none;
  }
}


.travel-globe-card {
  margin: 1.1rem 0 2.4rem;
  overflow: hidden;
  border-radius: 22px;
  background: linear-gradient(180deg, rgba(214, 232, 252, 0.55), rgba(168, 208, 242, 0.18));
  border: 1px solid rgba(140, 190, 235, 0.52);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.7), inset 0 -12px 22px rgba(90, 150, 210, 0.1), 0 8px 22px rgba(70, 130, 190, 0.08);
  backdrop-filter: var(--apple-glass-sm-blur);
  -webkit-backdrop-filter: var(--apple-glass-sm-blur);
}

.travel-globe-stage {
  position: relative;
  width: 100%;
  height: min(62vh, 560px);
  background: radial-gradient(circle at 50% 42%, rgba(190, 220, 248, 0.5), rgba(232, 242, 252, 0.16));
}

.travel-globe {
  width: 100%;
  height: 100%;
  cursor: grab;
}

.travel-globe:active { cursor: grabbing; }

.travel-globe,
.travel-globe canvas {
  touch-action: none;
}

.travel-globe canvas {
  display: block;
  width: 100% !important;
  height: 100% !important;
}

.travel-globe-status {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  color: var(--apple-muted);
  font-size: 0.95rem;
  pointer-events: none;
}

.travel-globe-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem 0.9rem;
  align-items: center;
  padding: 0.75rem 1rem 1rem;
  color: var(--apple-text);
  font-size: 0.82rem;
}

.travel-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

.travel-chip-visited::before,
.travel-chip-flight::before {
  content: "";
  width: 0.7rem;
  height: 0.7rem;
  border-radius: 999px;
}

.travel-chip-visited::before {
  background: #e8a838;
  box-shadow: 0 0 0 3px rgba(232, 168, 56, 0.28);
}

.travel-chip-flight::before {
  width: 1.35rem;
  height: 3px;
  border-radius: 99px;
  /* 3.5 blue : 1.5 transition : 5 gold — muted takeoff #8e98a8, landing #e8a838 */
  background: linear-gradient(90deg, #8e98a8 0%, #8e98a8 35%, #e8a838 50%, #e8a838 100%);
}

.travel-globe-hint {
  margin-left: auto;
  color: var(--apple-muted);
}

.travel-tip {
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", sans-serif;
  min-width: 7rem;
  padding: 0.55rem 0.75rem;
  background: var(--apple-glass-sm-bg);
  color: #1d1d1f;
  border: 1px solid var(--apple-glass-sm-border);
  border-radius: 12px;
  font-size: 0.95rem;
  line-height: 1.35;
  box-shadow: var(--apple-glass-sm-shadow);
  backdrop-filter: var(--apple-glass-sm-blur);
  -webkit-backdrop-filter: var(--apple-glass-sm-blur);
}

.travel-tip-name {
  font-weight: 650;
  color: #1d1d1f;
}

.travel-tip-sub {
  margin-top: 0.12rem;
  color: #6e6e73;
  font-size: 0.8rem;
}

@media (max-width: 1100px) {
  .apple-hero {
    padding: 6.2rem 1.1rem 3.2rem;
    margin-left: 0;
    margin-right: 0;
  }
  .apple-hero-title {
    max-width: 12ch;
    font-size: clamp(2.4rem, 7.2vw, 4.4rem);
  }
  .travel-globe-stage {
    height: min(56vh, 520px);
  }
}

@media (max-width: 734px) {
  body .container {
    padding-left: max(16px, env(safe-area-inset-left));
    padding-right: max(16px, env(safe-area-inset-right));
  }
  .apple-orbs {
    z-index: 0;
    inset: -28% -18% auto;
    height: 22rem;
    opacity: 0.95;
  }
  .apple-tartan-mark {
    top: 64%;
    width: min(42vw, 140px);
    opacity: 0.26;
  }
  .apple-hero {
    padding: 4.6rem 0.35rem 2.4rem;
    margin: -0.6rem 0 2.2rem;
    border-radius: 22px;
  }
  .apple-hero-title {
    max-width: none;
    font-size: clamp(2.15rem, 11vw, 3.1rem);
  }
  /* Keep the wash, but don't trap the ink/particle layer under backdrop-filter. */
  .apple-hero::after {
    z-index: 0;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
  }
  .apple-liquid-canvas {
    z-index: 2;
    transform: translateZ(0);
  }
  .apple-eyebrow,
  .apple-hero-sub,
  .apple-hero-lede,
  .apple-hero-actions {
    z-index: 3;
  }
  .apple-title-wrap {
    z-index: 4;
  }
  .apple-hero-sub,
  .apple-hero-lede {
    max-width: none;
  }
  .apple-hero-sub { font-size: 1.08rem; }
  .apple-hero-lede {
    font-size: 1.02rem;
    margin-bottom: 1.3rem;
  }
  .apple-btn {
    min-height: 2.6rem;
    padding: 0.5rem 1rem;
    font-size: 0.98rem;
  }
  .apple-article { font-size: 1rem; }
  .apple-article > .clearfix > p:first-of-type { font-size: 1.08rem; }
  .apple-page h2,
  .post h2 {
    margin-top: 2.3rem;
    font-size: 1.55rem;
  }
  .bibliography li,
  .publications li {
    padding: 0.28rem 0.95rem !important;
    border-radius: 12px;
  }
  .apple-page article ul > li,
  .post article ul > li,
  .apple-article ul > li {
    padding: 0.85rem 4.6rem 0.85rem 0.95rem !important;
    border-radius: 14px;
  }
  .travel-globe-card {
    margin: 0.85rem 0 1.8rem;
    border-radius: 18px;
  }
  .travel-globe-stage {
    height: min(58vh, 420px);
  }
  .travel-globe-legend {
    padding: 0.65rem 0.85rem 0.9rem;
    font-size: 0.78rem;
  }
  .travel-globe-hint {
    margin-left: 0;
    width: 100%;
  }
}

@media (hover: none) {
  .apple-page article ul > li,
  .apple-article ul > li,
  .bibliography li,
  .publications li {
    transform: none !important;
  }
}

html[data-theme="dark"] .travel-globe-card,
html[data-theme-setting="dark"] .travel-globe-card {
  background: linear-gradient(180deg, rgba(32, 56, 88, 0.52), rgba(14, 28, 46, 0.2));
  border-color: rgba(100, 160, 220, 0.26);
  box-shadow: inset 0 1px 0 rgba(150, 195, 240, 0.14), inset 0 -12px 22px rgba(60, 120, 190, 0.1), 0 10px 24px rgba(0, 0, 0, 0.22);
}

html[data-theme="dark"] .travel-globe-stage,
html[data-theme-setting="dark"] .travel-globe-stage {
  background: radial-gradient(circle at 50% 42%, rgba(28, 48, 74, 0.55), rgba(8, 14, 22, 0.18));
}

html[data-theme="dark"] .travel-globe-legend,
html[data-theme-setting="dark"] .travel-globe-legend {
  color: #f5f5f7;
}

html[data-theme="dark"] .travel-globe-hint,
html[data-theme-setting="dark"] .travel-globe-hint,
html[data-theme="dark"] .travel-globe-status,
html[data-theme-setting="dark"] .travel-globe-status {
  color: #a1a1a6;
}

html[data-theme="dark"] .travel-tip,
html[data-theme-setting="dark"] .travel-tip {
  background: var(--apple-glass-sm-bg);
  color: #f5f5f7;
  box-shadow: var(--apple-glass-sm-shadow);
}

html[data-theme="dark"] .travel-tip-name,
html[data-theme-setting="dark"] .travel-tip-name {
  color: #f5f5f7;
}

html[data-theme="dark"] .travel-tip-sub,
html[data-theme-setting="dark"] .travel-tip-sub {
  color: #a1a1a6;
}

.visitor-map-card {
  margin: 0.4rem 0 2.6rem;
  overflow: visible;
  border-radius: 22px;
  background: linear-gradient(180deg, rgba(228, 232, 238, 0.44), rgba(196, 204, 214, 0.12));
  border: 1px solid rgba(180, 196, 214, 0.42);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.62), inset 0 -12px 22px rgba(120, 136, 156, 0.06), 0 8px 20px rgba(120, 136, 156, 0.045);
}

.visitor-map-stage {
  position: relative;
  width: 100%;
  aspect-ratio: 2 / 1;
  overflow: hidden;
  touch-action: none;
  cursor: grab;
  background: rgba(255, 255, 255, 0.35);
}

.visitor-map-stage.is-panning {
  cursor: grabbing;
}

.visitor-map-world {
  position: absolute;
  inset: 0;
  transform-origin: 0 0;
}

.visitor-map-controls {
  position: absolute;
  right: 0.7rem;
  bottom: 0.7rem;
  z-index: 4;
  display: flex;
  gap: 0.35rem;
}

.visitor-map-control {
  width: 2rem;
  height: 2rem;
  padding: 0;
  border: 1px solid rgba(180, 196, 214, 0.7);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.92);
  color: #6f7b8a;
  font-size: 1.05rem;
  line-height: 1;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(120, 136, 156, 0.12);
}

.visitor-map-control:hover {
  background: #fff;
}

.visitor-map-land {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: fill;
}

.visitor-map-dots {
  position: absolute;
  inset: 0;
}

.visitor-map-pin {
  position: absolute;
  z-index: 1;
  transform: translate(-50%, -50%) scale(var(--visitor-pin-scale, 1));
  transform-origin: center;
}

.visitor-map-pin:hover {
  z-index: 3;
}

.visitor-map-dot {
  display: block;
  border-radius: 50%;
  background: rgba(0, 113, 227, 0.85);
  box-shadow: 0 0 0 3px rgba(0, 113, 227, 0.18);
}

.visitor-map-tip {
  display: none;
  position: absolute;
  left: 50%;
  bottom: calc(100% + 8px);
  transform: translateX(-50%);
  padding: 0.38rem 0.55rem 0.42rem;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
  color: #1d1d1f;
  font-size: 0.78rem;
  line-height: 1.25;
  white-space: nowrap;
  pointer-events: none;
}

.visitor-map-pin:hover .visitor-map-tip {
  display: grid;
  justify-items: center;
}

.visitor-map-stage.is-panning .visitor-map-tip {
  display: none;
}

.visitor-map-tip strong {
  font-size: 0.95rem;
  font-variant-numeric: tabular-nums;
}

.visitor-map-note {
  margin: 0;
  padding: 0.7rem 1rem 0.85rem;
  color: var(--apple-muted);
  font-size: 0.84rem;
}

html[data-theme="dark"] .visitor-map-card,
html[data-theme-setting="dark"] .visitor-map-card {
  background: linear-gradient(180deg, rgba(52, 56, 64, 0.42), rgba(24, 26, 30, 0.16));
  border-color: rgba(180, 196, 214, 0.16);
}

html[data-theme="dark"] .visitor-map-stage,
html[data-theme-setting="dark"] .visitor-map-stage {
  background: rgba(12, 16, 24, 0.35);
}

html[data-theme="dark"] .visitor-map-control,
html[data-theme-setting="dark"] .visitor-map-control {
  background: rgba(28, 28, 30, 0.92);
  border-color: rgba(180, 196, 214, 0.28);
  color: #c8ced6;
}

html[data-theme="dark"] .visitor-map-land,
html[data-theme-setting="dark"] .visitor-map-land {
  filter: brightness(0.72) contrast(1.05);
}

html[data-theme="dark"] .visitor-map-tip,
html[data-theme-setting="dark"] .visitor-map-tip {
  background: rgba(28, 28, 30, 0.94);
  color: #f5f5f7;
}
